Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iphone - how to add normal text to settings bundle

I've 3 groups created in iphone settings bundle Root.plist file. Its showing fine.

But for every group, i want to add some description. It will be something like follows:

GroupName Description Settings in that group.

Is it possible. How to add description? If the description color is different to identify from group name and settings in that group, it will be good.

like image 874
Satyam Avatar asked Nov 16 '10 09:11

Satyam


People also ask

How Use iOS bundle settings?

Adding the Settings BundleChoose File > New > New File. Under iOS, choose Resource, and then select the Settings Bundle template. Name the file Settings. bundle .

How do I use Swift bundle settings?

Start a new Single view application project in Xcode called SettingsBundleDemo using Swift and a Universal device. Right-click on the SettingsBundleDemo group folder and select New file. Select the Resources category in the template window. Select Settings Bundle and click Next.

What are my iOS settings?

In the Settings app , you can search for iPhone settings you want to change, such as your passcode, notification sounds, and more. Tap Settings on the Home Screen (or in the App Library). Swipe down to reveal the search field, enter a term—“iCloud,” for example—then tap a setting.


2 Answers

You can add text at the bottom of your Groups, that is commonly used as a hint about the preferences in that group.

  1. Add a new item to a Group (Yes!, additionally to the default Title and Type Keys).
  2. Replace the text under the Key column that reads "New Item" for FooterText.
  3. Under the Type column set the type for you new Key as String.
  4. Write whatever you want on the field under the Value column for the new Key.

And... voilà!

Next time you build and launch the App go to Settings and to your App's preferences to see the text under the Group you placed it.

like image 72
Oscar Salguero Avatar answered Sep 21 '22 14:09

Oscar Salguero


everything you will ever need for setings.bundle is here ->

http://developer.apple.com/library/ios/#documentation/PreferenceSettings/Conceptual/SettingsApplicationSchemaReference/Introduction/Introduction.html

however, choosing colors etc isn't going to happen. sorry.

like image 37
theiOSDude Avatar answered Sep 20 '22 14:09

theiOSDude