Search code examples
iphoneobjective-ccocoa-touchapplication-settings

How to add a label in a settings screen


As a picture says more than a thousand words: alt text http://img.skitch.com/20091008-k16k7we3t43gj3h7htgtjpunpx.jpg

Any help on how to add descriptive labels to a settings pane would be highly appreciated! I should point out that I want to do this to be in the iPhone-App settings that are in the Settings menu of the iPhone (outside the App).

Example label:

  • iPhone -> Settings -> Safari -> Fraud Warning
  • The label beneath: "Warn when visiting fraudulent websites."

Solution

  • Unfortunately, Apple has not given iPhone developers the capability to add the kind of label you're looking for in Settings.app. As a near approximation, I've used PSGroupSpecifier under another setting element (such as PSToggleSwitchSpecifier). It's not as elegant as a true label, but it worked well enough in my situation (I only had one setting, so it didn't conflict with any other group headings).

    alt text http://pseudorandomengineer.com/images/6.png