iphone跟ipad设置束的运用
发布时间:2010-05-30 01:12:34 文章来源:www.iduyao.cn 采编人员:星星草
iphone和ipad设置束的运用!
首先先创建一个Settings.bundle文件,在Root.plist文件编辑信息,
首先Application Preferences一共有
1.PSTextFieldSpecifier
2.PSTitleValueSpecifier
3.PSToggleSwitchSpecifier
4。PSSliderSpecifier
5.PSMultiValueSpecifier
6.PSGroupSpecifier
7.PSChildPaneSpecifier 7个条目,分别代表不同的视图!
键(key) 值类型(type) 值(value)
1. PSTextFieldSpecifier
IsSecure Boolean YES/NO
KeyboardType String ( Value: Value must contain one of the following strings. Alphabet, NumbersAndPunctuation, NumberPad, URL and EmailAddress.)
AutocapitalizationType String (Value: Value must contain one of the following strings. None, Sentences, Words, AllCharacters. Default value is None.)
AutoCorrectionType String (Value: Value must contain one of the following strings. Default, No, Yes. Default value is Default.)
下同:
2.PSTitleValueSpecifier
Key: Type (required)
Type: String
Value: PSTitleValueSpecifier
Key: Title (required)
Type: String
Value: Your string value.
Key: Key (required)
Type: String
Value: Your string value.
Key: DefaultValue (required)
Type: String
Value: Your string value.
Key: Values
Type: Array
Value: Key-Value entry
Key: Titles
Type: Array
Value: Key-Value entry
3.PSToggleSwitchSpecifier
Key: Type (required)
Type: String
Value: PSToogleSwitchSpecifier
Key: Title (required)
Type: String
Value: Your string value.
Key: Key (required)
Type: String
Value: Your string value.
Key: DefaultValue (required)
Type: String
Value: Your string value.
Key: TrueValue
Type: Boolean
Value: YES
Key: FalseValue
Type: Boolean
Value: NO
4.PSSliderSpecifier
Key: Type (required)
Type: String
Value: PSSliderSpecifier
Key: Title (required)
Type: String
Value: Your string value.
Key: Key (required)
Type: String
Value: Your string value.
Key: DefaultValue (required)
Type: String
Value: Your string value.
Key: MinimumValue (required)
Type: Number
Value: Minimum number value here
Key: MaximumValue (required)
Type: Number
Value: Maximum number value here
Key: MinimumValueImage
Type: String
Value: Image (21*21)
Key: MaximumValueImage
Type: String
Value: Image (21*21)
5.PSMultiValueSpecifier
Key: Type (required)
Type: String
Value: PSMultiValueSpecifier
Key: Title (required)
Type: String
Value: Your string value.
Key: Key (required)
Type: String
Value: Your string value.
Key: DefaultValue (required)
Type: String
Value: Your string value.
Key: Values
Type: Array
Value: Key-Value entry.
Key: Titles
Type: Array
Value: Key-Value entry.
6.PSGroupSpecifier
Key: Type (required)
Type: String
Value: PSGroupSpecifier
Key: Title (required)
Type: String
Value: Your string value.
7.PSChildPaneSpecifier
Key: Type (Required)
Type: String
Value: PSChildPaneSpecifier
Key: Title (required)
Type: String
Value: Your string value.
Key: File
Type: String
Value: The name of plist file, without the extension.
最后在程序中根据key得到用户设置的value
NSstring default = [[NSUserDefaults standardUserDefaults] stringForKey:@”key”];
友情提示:
信息收集于互联网,如果您发现错误或造成侵权,请及时通知本站更正或删除,具体联系方式见页面底部联系我们,谢谢。
其他相似内容:
-
图片拾取器问题
用图片拾取器方法除了能拾取相册里面的图片外,能不能拾取其它文件里面非照片的图像啊,如果能,要怎么做
------解决...
-
请教个问题。。很弱智,不要嘲笑。。
请问mac osx 10.6下开发出来的程序在mac osx 10.5下可以正常使用么?会不会有些库的问题?
客户要...
-
一个数组可以放UIButton,那怎么调用这些元素呢,[array objectatindex i]不好用]
UIButton,那怎么调用这些元素呢,[array objectatinde...
-
关于imageView显示图片的问题
我现在需要在一个imageView中现在两张图片,这两张是重叠显示的,在android中,我这么做到的,imageView1.s...
-
如何在软件中嵌套ppt播放功能
如何在软件中嵌套ppt播放功能 不知道这个能实现吗
------解决方案--------------------
可以,...
-
objectivc-c
请问下自学obj-c要看哪本书比较好?
linux下可以运行obj-c的程序吗?
mac软件开发除了obj-c还需要什么别的吗?
------解...
-
怎么实现iphone客户端软件与服务器端的数据交互?
怎么实现iphone客户端软件与服务器端的数据交互?
------解决方案---------------...
-
求IOS微信界面实现思路
如题,请大神们指点一二,非常感谢!
------解决方案--------------------
问题过于笼统,无法作答
------解决...
-
给黑苹果搞个Navicat for SQLite 求个下载地址
给黑苹果搞个Navicat for SQLite 求个下载地址 谢谢
------解决方案---------...
-
iphone中按提示弄音频接收, 在线等
关于iphone中的音频接收( Streaming Live or On-Demand Video from IIS7 to iOS Devices (iPhon...