Descriptive text in iPhone settings bundles

February 14th, 2011 § 1 comment

Back in the iPhone OS 3.x days, I would stare longingly at the Settings bundles in Apple’s built-in iPhone apps:

If an app wanted explanatory text in the Settings app, you pretty much had to make do with Titles and Group titles. Ugly.

It turns out that in iOS 4.0 and higher, Apple allowed for third-party apps to have descriptive text too. And I only found out about this last week (I noticed its use in the Ladidude app).

The longer descriptive text is called “Footer text” in Apple’s nomenclature, and can be attached to any Group. To add your own, do the following:

  1. Open your Settings.bundle Root.plist in Xcode
  2. Go to the group you want footer text attached to.
  3. Add a new Item to the Group and edit the key to be “FooterText” (you’ll have to type “FooterText” in manually):
  4. The set the value to whatever text you want to show up. If you need to insert linefeeds, type option-Enter.
  5. Now you can visit your app’s settings in the Settings app. It should look something like this:

If your app is compatible with iPhone OS 3.x as well, not to worry: the extra FooterText key is simply ignored on pre-iOS4 devices.

Tagged

§ One Response to Descriptive text in iPhone settings bundles

Leave a Reply

Your email address will not be published. Required fields are marked *

What's this?

You are currently reading Descriptive text in iPhone settings bundles at bunnyhero dev.

meta