
本文共 3920 字,大约阅读时间需要 13 分钟。
iOS Settings Bundle
���������������������������������������������������������������������������������������������������������Setting Bundle������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������
������������������������
���������������������������������������������������������������������������
������Setting Bundle
������Root.plist������
���������������������Root.plist���������������������������������������������������������������������������Switch������������������������������
���Preference Items���������������������item0������������������
- Type: Group
- Title: Title������������������������
���Preference Items���������������������item1������������������
- Type: Toggle Switch
- Title: ������������������������������������
- Identifier: changePlace
- DefaultValue: NO
���������Switch���������������������������������
Key | ������ | ������������ |
---|---|---|
Type | PSToggleSwitchSpecifier | String |
Title | ������ | String |
Identifier | ������������ | String |
DefaultValue | ��������������� | BOOL |
TrueValue | ��������������������� | ������������ |
FalseValue | ��������������������� | ������������ |
SupportedUserInterfaceIdioms | ��������������������������� | String |
������NSUserDefaults���������������������������
������������������������Setting Bundle������������������������������NSUserDefaults������������������������������
���������������������Switch���������������������
NSUserDefaults *setting = [NSUserDefaults standardUserDefaults];BOOL isChangePlaceEnabled = [setting boolForKey:@"changePlace"];// ������isChangePlaceEnabled���������������������[setting setBool:NO forKey:@"clearUserCache"];[setting synchronize];
���������������������
Group���������
Key | ������ | ������������ |
---|---|---|
Type | PSGroupSpecifier | String |
Title | ��������� | String |
FooterText | ��������� | String |
SupportedUserInterfaceIdioms | ��������������������������� | String |
Child Pane���������������
Key | ������ | ������������ |
---|---|---|
Type | PSChildPaneSpecifier | String |
Title | ������ | String |
File | ��������������������� | String |
SupportedUserInterfaceIdioms | ��������������������������� | String |
Slider������������
Key | ������ | ������������ |
---|---|---|
Type | PSSliderSpecifier | String |
DefaultValue | ��������� | Number |
MinimumValue | ��������� | Number |
MaximumValue | ��������� | Number |
MinimumValueImage | ���������������21x21 | String |
MaximumValueImage | ���������������21x21 | String |
Label������������
Key | ������ | ������������ |
---|---|---|
Type | PSTitleValueSpecifier | String |
Title | ������ | String |
Key | ������������ | String |
DefaultValue | ��������� | String |
Titles | ���������Keys | Array |
Values | ���������Values | Array |
Field���������������������
Key | ������ | ������������ |
---|---|---|
Type | PSTextFieldSpecifier | String |
Title | ������ | String |
DefaultValue | ��������� | String |
IsSecure | ������������ | BOOL |
KeyboardType | ������������ | ������ |
AutocapitalizationType | ��������������� | ������ |
AutocorrectionType | ������������ | ������ |
Picker���������������
Key | ������ | ������������ |
---|---|---|
Type | PSMultiValueSpecifier | String |
Title | ������ | String |
DefaultValue | ��������� | String |
Titles | Keys | Array |
Values | Values | Array |
ShortTitles | ������������������ | Array |
SupportedUserInterfaceIdioms | ��������������������������� | String |
DisplaySortedByTitle | ������������ | BOOL |
Select������������ 2���
Key | ������ | ������������ |
---|---|---|
Type | PSRadioGroupSpecifier | String |
Title | ������ | String |
DefaultValue | ��������� | String |
Titles | Keys | Array |
Values | Values | Array |
SupportedUserInterfaceIdioms | ��������������������������� | String |
DisplaySortedByTitle | ������������ | BOOL |
������������������������������������������������������������������������������������������������
发表评论
最新留言
关于作者
