I'm developing an application which has a Settings pane, following the AppPrefs sample by Apple. If my application is named AppPrefs, this is the exact name/prompt/ title the Settings application will provide. Is there anyway to make this change? Can my executable somehow be named (for example) Application1 and my Settings named "Settings for App1"? Thanks!
我正在开发一个具有“设置”窗格的应用程序,遵循Apple的AppPrefs示例。如果我的应用程序名为AppPrefs,则这是“设置”应用程序将提供的确切名称/提示/标题。反正有没有做出这个改变?可以以某种方式命名我的可执行文件(例如)Application1和我的设置名为“App1的设置”吗?谢谢!
2 个解决方案
#1
Unfortuntely, nope, due to the why the settings system works. From Apple's iPhone Application Programming Guide:
不幸的是,由于设置系统的工作原因,不幸。来自Apple的iPhone应用程序编程指南:
When the Settings application launches, it checks each custom application for the presence of a settings bundle. For each custom bundle it finds, it loads that bundle and displays the corresponding application’s name and icon in the Settings main page. When the user taps the row belonging to your application, Settings loads the Root.plist Settings Page file for your settings bundle and uses that file to display your application’s main page of preferences.
当“设置”应用程序启动时,它会检查每个自定义应用程序是否存在设置包。对于它找到的每个自定义捆绑包,它会加载该捆绑包并在“设置”主页中显示相应的应用程序名称和图标。当用户点击属于您的应用程序的行时,Settings会为您的设置包加载Root.plist设置页面文件,并使用该文件显示您的应用程序的首选项主页面。
#2
Apparently it used to be possible by adding a "Title" key with a string for the name of the preferences in the Root.plist (e.g. in Mark and LaMarche '09, p311). But this no longer appears to work. I think this is a problem because the Bundle display name is sometimes a shortened version of your app to fit under the icon in the spring board.
显然,过去可以通过在Root.plist中添加带有字符串的“Title”键作为首选项的名称(例如在Mark和LaMarche '09,p311中)。但这似乎不再奏效。我认为这是一个问题,因为Bundle显示名称有时是应用程序的缩短版本,以适应弹簧板中的图标。
#1
Unfortuntely, nope, due to the why the settings system works. From Apple's iPhone Application Programming Guide:
不幸的是,由于设置系统的工作原因,不幸。来自Apple的iPhone应用程序编程指南:
When the Settings application launches, it checks each custom application for the presence of a settings bundle. For each custom bundle it finds, it loads that bundle and displays the corresponding application’s name and icon in the Settings main page. When the user taps the row belonging to your application, Settings loads the Root.plist Settings Page file for your settings bundle and uses that file to display your application’s main page of preferences.
当“设置”应用程序启动时,它会检查每个自定义应用程序是否存在设置包。对于它找到的每个自定义捆绑包,它会加载该捆绑包并在“设置”主页中显示相应的应用程序名称和图标。当用户点击属于您的应用程序的行时,Settings会为您的设置包加载Root.plist设置页面文件,并使用该文件显示您的应用程序的首选项主页面。
#2
Apparently it used to be possible by adding a "Title" key with a string for the name of the preferences in the Root.plist (e.g. in Mark and LaMarche '09, p311). But this no longer appears to work. I think this is a problem because the Bundle display name is sometimes a shortened version of your app to fit under the icon in the spring board.
显然,过去可以通过在Root.plist中添加带有字符串的“Title”键作为首选项的名称(例如在Mark和LaMarche '09,p311中)。但这似乎不再奏效。我认为这是一个问题,因为Bundle显示名称有时是应用程序的缩短版本,以适应弹簧板中的图标。