iOS Settings Bundle
发布日期:2021-05-14 19:08:17 浏览次数:17 分类:精选文章

本文共 3920 字,大约阅读时间需要 13 分钟。

iOS Settings Bundle

���������������������������������������������������������������������������������������������������������Setting Bundle������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������

������������������������

���������������������������������������������������������������������������

  • ������Setting Bundle

  • ���Xcode���������New File���������Setting Bundle���������������������������
  • ������Root.plist������

  • ���SettingBundle���������Root.plist������������������������������������������������������
  • ������Group���������������������������������������TableView���������������������������
  • ������Text Field���Password Field������������������������������������������
  • ������Switch������������������������������boolean������
  • ���������������������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

    ������������������������������������������������������������������������������������������������

    上一篇:斐波那契数列
    下一篇:UIApplication Delegate Messaging

    发表评论

    最新留言

    关注你微信了!
    [***.104.42.241]2025年04月26日 15时41分01秒