仅在iOS设置中显示的组标题捆绑子窗格

时间:2014-05-04 19:01:47

标签: ios ios7 settings.bundle

我即将在单独的.plist中对图形内容进行设置。我从Root.plist链接了它,但只有设备才显示组标题。因为我无法上传图片,所以我在这里粘贴代码。

  <plist version="1.0">
  <dict>
    <key>StringsTable</key>
<string>Graphics</string>
    <key>PreferenceSpecifiers</key>
<array>
     <dict>
        <key>Type</key>
        <string>PSGroupSpecifier</string>
        <key>Title</key>
        <string>Background Settings</string>
     </dict>
     <dict>
        <key>Type</key>
        <string>PSToggleSwitchSpecifier</string>
        <key>Title</key>
        <string>Moving background</string>
        <key>Identifier</key>
        <string>moveEnabled</string>
        <key>Default Value</key>
        <true/>
     </dict>
     <dict>
        <key>Type</key>
        <string>PSToggleSwitchSpecifier</string>
        <key>Title</key>
        <string>Display Nebulas</string>
        <key>Identifier</key>
        <string>nebulasEnabled</string>
        <key>Default Value</key>
        <true/>
     </dict>
     <dict>
        <key>Type</key>
        <string>PSToggleSwitchSpecifier</string>
        <key>Title</key>
        <string>Display Stars</string>
        <key>Identifier</key>
        <string>starsEnabled</string>
        <key>Default Value</key>
        <true/>
     </dict>
     <dict>
        <key>Type</key>
        <string>PSGroupSpecifier</string>
        <key>Title</key>
        <string>Explosion Settings</string>
     </dict>
  </array>
  </dict>
  </plist>

这是仅显示标题的部分,这就是我链接它的方式:

     <dict>
        <key>Type</key>
        <string>PSChildPaneSpecifier</string>
        <key>Title</key>
        <string>Graphic Settings</string>
        <key>File</key>
        <string>Graphics</string>
    </dict>

感谢您的帮助。

1 个答案:

答案 0 :(得分:0)

确保PreferenceSpecifiers数组中没有任何元素缺少“必需”键/值对。

您可以找到Apple对每个shema元素here的引用。

我有同样的问题,它对我有用!