Apple最近推出了一种翻译文件的新流程.您不再需要使用genstrings/ibtool来生成.strings文件 - 而只需使用.xliffXcode中内置的文件导出/导入工具:
不幸的是,当我尝试从Xcode导入时,它崩溃了.我想xcodebuild -importLocalizations按照此处所述进行测试(第68页):
事实证明importLocalizationsxcodebuild 没有这样的论据(尽管有一个exportLocalization)?!(man命令证实了这一点)我错过了什么吗?这也在Xcode 6.1中进行了测试.
我有可分页的ListView,它的行在向下滚动时异步加载,有时候应用程序崩溃.它不会发生在Android 2.3.3上,但确实发生在Android 4.0及更高版本上.
这是我的堆栈跟踪:
03-07 15:23:02.450: D/AndroidRuntime(1545): Shutting down VM
03-07 15:23:02.450: W/dalvikvm(1545): threadid=1: thread exiting with uncaught exception (group=0x40ccb930)
03-07 15:23:02.455: E/AndroidRuntime(1545): FATAL EXCEPTION: main
03-07 15:23:02.455: E/AndroidRuntime(1545): java.lang.IllegalStateException: The content of the adapter has changed but ListView did not receive a notification. Make sure the content of your adapter is not modified from a background thread, but only from the UI thread. [in ListView(2131099953, class com.ui.PaginableListView) with Adapter(class android.widget.HeaderViewListAdapter)]
03-07 15:23:02.455: E/AndroidRuntime(1545): at android.widget.ListView.layoutChildren(ListView.java:1544)
03-07 15:23:02.455: E/AndroidRuntime(1545): at …Run Code Online (Sandbox Code Playgroud)