Xcode provides a template for adding a Settings bundle to your current project. The default settings bundle contains a Root. plist file and a default language directory for storing any localized resources. You can then expand this bundle to include additional property list files and resources needed by your Settings bundle.
Adding the Settings Bundle
To add a settings bundle to your Xcode project:
In addition to adding a new Settings bundle to your project, Xcode automatically adds that bundle to the Copy Bundle Resources build phase of your application target. Thus, all you have to do is modify the property list files of your Settings bundle and add any needed resources.
The newly added Settings.bundle bundle has the following structure:
Preparing the Settings Page for Editing
After creating your Settings bundle using the Settings Bundle template, you can format the contents of your schema files to make them easier to edit. The following steps show you how to do this for the Root.plist file of your Settings bundle but the steps are the same for any other schema files you create.
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 to understand and edit the file’s contents.
Formatted contents of the Root.plist file
Configuring a Settings Page: A Tutorial
This section contains a tutorial that shows you how to configure a Settings page to display the controls you want. The goal of the tutorial is to create a page like the one in Figure. If you have not yet created a Settings bundle for your project, you should do so as described in “Preparing the Settings Page for Editing” before proceeding with these steps.
A root Settings page
At this point, you have finished the first group of settings and are ready to create the User Info group.
Creating Additional Settings Page Files
The Settings Bundle template includes the Root.plist file, which defines your application’s top Settings page. To define additional Settings pages, you must add additional property list files to your Settings bundle.
You can do this either from the Finder or from Xcode.
To add a property list file to your Settings bundle in Xcode, do the following:
After adding a new Settings page to your Settings bundle, you can edit the page’s contents as described in “Configuring a Settings Page: A Tutorial”. To display the settings for your page, you must reference it from a Child Pane element as described in “Hierarchical Preferences”.
IPHONE APPS Related Interview Questions
|C Interview Questions||IPHONE APPS Interview Questions|
|Mobile Testing Interview Questions||Oracle apps Interview Questions|
|Java Native Interface (JNI) Interview Questions||JNDI (Java Naming and Directory Interface) Interview Questions|
|Mobile computing Interview Questions||jQuery Mobile Interview Questions|
|Mobile Security Interview Questions||Objective C Interview Questions|
|Mobile Developer Interview Questions||Mobile Application Testing Interview Questions|
|Apps Associates Manual Testing Interview Questions||Mobile Marketing Interview Questions|
Iphone Apps Tutorial
The Core Application
Window And Views
Graphics And Drawing
Text And Web
Files And Networking
All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd
Wisdomjobs.com is one of the best job search sites in India.