我想在主屏幕上为我的应用程序(即席分发)定义一个默认文件夹名称,例如拖动到时的默认应用程序(“生产力”、“实用程序”、“游戏”、 “导航”):
代替默认名称“文件夹”:
我怎样才能实现这个目标?
编辑:
我尝试将 LSApplicationCategoryType 添加到 Info.plist,但这似乎没有任何影响。
最佳答案
我认为这仅适用于 AppStore 版本。我用我的一堆 Ad-hoc 版本和他们的 AppStore 版本进行了测试。 - 对于临时版本 - 显示“文件夹”名称。对于AppStore版本-移动到其他应用程序的应用程序-使用它的类别名称。 (如果 Ad-hoc 移至 AppStore 应用程序,则使用 AppStore 应用程序的类别)。
无论如何,我检查了 LSApplicationCategoryType
https://developer.apple.com/library/ios/documentation/general/Reference/InfoPlistKeyReference/Articles/LaunchServicesKeys.html#//apple_ref/doc/uid/TP40009250-SW8
您是否使用过“教育”-public.app-category.education 等示例?
无论哪种方式 - 它甚至可能不适用于同一页面中所述的调试/临时版本:
LSApplicationCategoryType (String - OS X) is a string that contains the UTI corresponding to the app’s type. The App Store uses this string to determine the appropriate categorization for the app. Table 2 lists the supported UTIs for apps.
...听起来,这个值被 App-Store 使用,来正确设置应用程序类别,然后用于对跳板上的应用程序进行分类。
所以我想,只有从 App Store 下载应用程序时,这才有效。
关于ios - 如何定义我的应用程序主屏幕组名称?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19218249/