开发者

ios multi-level preferences panes

Has anyone been able to to add a second preferences pane to an ios application? I went through the steps, however, the second page I add doesn't keep its settings.

I don't know what I need to add to this question to help clarify.

I changed the "type" of the second .plist to "iPhone Settings plist"; The root item is set correctly to "Preference Items". When I navigate away from the new .plist the type开发者_运维知识库 reverts back to "PreferenceSpecifiers".


Having the same troubles, resolved by :

  • right clicking in the plist editor and checking "Show Raw Keys/Values"
  • changing / checking values in raw mode.

Hope that help.


Excerpt from Implementing Application Preferences:

  1. In the Detail view, select the Root key of the Root.plist file.

  2. Choose View > Property List Type > iPhone Settings plist.

    This command formats the contents of the property list inside the Detail view. Instead of showing the property list key names and values, Xcode substitutes human-readable strings ... to make it easier for you to understand and edit the file’s contents.

(In Xcode 4.2, right-click the Root key and select Property List Type > iPhone Settings plist.)

You can also try editing the XML directly by right-clicking the file and selecting Open As > Source Code.

Finally, make sure you save the plist after making your changes and before navigating away.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜