iOS program Preferences--Advanced

Source: Internet
Author: User

iOS apps can also configure the Preferences page in setting, in addition to the preferences page within the app. Such as


Expert Jongzhi Fang In this article has a detailed introduction, the basic principle is to add settings.bundle for the project, will see Root.plist in the inside, by modifying the configuration inside it, from the definition of their own setting page, where the controls have the following 7 kinds.


The control is determined by type, except the sub-panel, which is basically set by the value and title, and the sub-panel uses the following:

A new file named Acknowledgements1.plist was created in Settings.bundle and the type of the file is set to iphone Settings plist, and the child Root.plist type Item is added to pane. and set the filename "Acknowledgements1" (no plist suffix, only the file name), the following is root.plist:


Download Full Demo


In universal app, set different root.plist for Iphone,ipad, have different device, make different preferences display. The method is to add a new Root~iphone.plist file for the iphone.


Download Full Demo


In the iOS settings of the program preferences, the advantage is the rapid configuration (Settings.bundle do most things, only need to configure the value), the disadvantage is that users need to cut out the app to the settings interface, set up, in re-open the app, not very convenient. Suitable for displaying versions, copyright notices, authors and other external information.





Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.