为App设置Settings.bundle
2014-02-14 15:13
246 查看
创建Settings bundle文件
生成的文件如下
在手机上显示为:
问题来了,如果此时修改Root.plist中某个Item的Title,如第一个Group的Title : "Group"。
方法是修改对应Root.strings中的 "Group" = "修改后的title“。
我们会发现无论如何修改,其在手机上显示的内容为"Group"。
解决方法:重启xcode后,再编译即可。
下图是可以添加的item的种类:
生成的文件如下
在手机上显示为:
问题来了,如果此时修改Root.plist中某个Item的Title,如第一个Group的Title : "Group"。
方法是修改对应Root.strings中的 "Group" = "修改后的title“。
我们会发现无论如何修改,其在手机上显示的内容为"Group"。
解决方法:重启xcode后,再编译即可。
下图是可以添加的item的种类:
Control type | Description |
---|---|
Text field | The text field type displays a title (optional) and an editable text field. You can use this type for preferences that require the user to specify a custom string value. The key for this type is PSTextFieldSpecifier. |
Title | The title type displays a read-only string value. You can use this type to display read-only preference values. (If the preference contains cryptic or nonintuitive values, this type lets you map the possible values to custom strings.) The key for this type is PSTitleValueSpecifier. |
Toggle switch | The toggle switch type displays an ON/OFF toggle button. You can use this type to configure a preference that can have only one of two values. Although you typically use this type to represent preferences containing Boolean values, you can also use it with preferences containing non-Boolean values. The key for this type is PSToggleSwitchSpecifier. |
Slider | The slider type displays a slider control. You can use this type for a preference that represents a range of values. The value for this type is a real number whose minimum and maximum value you specify. The key for this type is PSSliderSpecifier. |
Multivalue | The multivalue type lets the user select one value from a list of values. You can use this type for a preference that supports a set of mutually exclusive values. The values can be of any type. The key for this type is PSMultiValueSpecifier. |
Group | The group type is for organizing groups of preferences on a single page. The group type does not represent a configurable preference. It simply contains a title string that is displayed immediately before one or more configurable preferences. The key for this type is PSGroupSpecifier. |
Child pane | The child pane type lets the user navigate to a new page of preferences. You use this type to implement hierarchical preferences. For more information on how you configure and use this preference type, see “Hierarchical Preferences.” The key for this type is PSChildPaneSpecifier. |
相关文章推荐
- 使用Settings Bundle为程序添加设置项
- ios-(Settings Bundle)程序偏好设置
- iOS开发之iOS程序偏好设置(Settings Bundle)的使用
- App Transport Security Settings设置
- 使用Settings Bundle为程序添加设置项
- 使用Settings Bundle为程序添加设置项(续)使用plist文件永久存储
- iOS开发之iOS程序偏好设置(Settings Bundle)的使用
- ios开发中 应用设置的简单开发 (Settings.bundle)
- iphone和ipad设置束的运用!(Settings.bundle)
- iOS开发21:使用Settings Bundle为程序添加设置项
- 使用Settings Bundle为程序添加设置项
- iOS开发21:使用Settings Bundle为程序添加设置项
- Xcode中为何要为设置bundle和App分别设置两份一样的图片资源
- iOS开发之iOS程序偏好设置(Settings Bundle)的使用
- iOS开发之iOS程序偏好设置(Settings Bundle)的使用
- Xcode中为何要为设置bundle和App分别设置两份一样的图片资源
- iOS 简单计算文件Cache的大小(项目中用了IASKAppSettingsViewController,一个设置界面的库)
- Settings(系统设置app)
- iOS开发之iOS程序偏好设置(Settings Bundle)的使用
- 使用Settings Bundle为程序添加设置项