Create application setting in Settings app - iphone

I am very new to iPhone programming and I was wondering how could I create a separate section for my application in the Settings.app? Like what the Facebook or BeejiveIM or JellyCar apps do. Would I have to declare this dynamically, or could I use Interface Builder?

You accomplish this by creating a Settings.bundle in your project. Inside the Settings.bundle, you define the settings (names, types, defaults, etc) you are interested in. When the app is installed, the OS will handle creating the pages in the Settings app for you.
The process is described here.

There's the InAppSettingsKit: http://github.com/steipete/InAppSettings
Aiming to match the settings from the settings with the ones in your app.

Related

How can I implement disabled application settings?

How can I implement disabled application settings ?
I saw this feature in Nike Running application.
I searched a lot about this feature, but couldn't find a possible solution.
There is no tutorial or no reference found in apple site and in the internet.
Any Ideas ? Thanks in advance guys...
You can't do that. Apple has made some special settings for things included in iOS, like the Nike +iPod setting.
You can only use the Settings.bundle which is read by the settings app and then allows the user to change some settings.
You could do this if you implemented your settings inside your App. A Static Cell TableViewController is all you need. Just keep track of the settings using NSUserDefaults (standard place to store these settings) and implement the View yourself. I personally like settings inside the application rather than being implemented as part of the OS's settings.

Adding a settings screen to my iphone application

In applications like CNN int, in the Settings Tab of the iPhone, you could click on CNN and access a view which has the settings to the application;
Like if to Logout of Facebook,Twitter and the version.
How can i get this application setting view in the Settings Tab for my application ?
For example something like this:
It is very simple and can be achieved with the addition of a single .plist file to your project. The Apple documentation is here. You're looking for a "Settings Bundle".
I used this nifty little tool, it's free and quick.
You'll might also need the tutorial Johann suggested.
You could use the settings bundle or if you want your app settings in the app its self you could have a look at something call InAppSettingsKit. I have been duly informed that this is a good option as it gives more freedom with your settings.

Settings view in an application in iPhone

I am pretty new to iPhone dev. I want to create a Settings page in my application. In Android i use preferences to fill the required Settings page. Is there anything like that for iPhone dev, or should i create every section like a normal UI.
BR,
Suppi
See Implementing Application Preferences in the iOS Developer Library. This will give you all the information you need and some best practices to follow.
You could also use something like InAppSettingsKit which works in an almost identical fashion but will allow you to present your app preferences in-app as well as via the Settings.app.
If you want to make a "settings page" in Settings app, you should look at Settings.bundle with NSUserDefaults.

Launch iPhone setting screen from Application?

I am developing an application where i want that upon a press of button iPhone settings screen should open.
Is there any restriction from apple to access it?
Is it possible or not,If yes then how?
No you can't do that. However as an alternative you can use This Framework to mimmick the settings app, so that you can set your settings from the official settings app, or from a in app settings page.
No, it's not possible using public API's.
However there exists a number of frameworks that allows you to access the settings bundle directly from within your application. Take a look at this SO question for more information.

How do you create application preferences page?

I see some application that uses the settings bundle for their app. Example: http://knol.google.com/k/usman-ismail/iphone-sdk-application-preferences#. I was wondering how to do that without it appearing at the user main settings. I see some application managed to do that. Is there any tutorial around?
I recommend you this open source application http://www.inappsettingskit.com/.
InAppSettingsKit is an open source solution to to easily add in-app settings to your iPhone apps. It uses a hybrid approach by maintaining the Settings.app pane. So the user has the choice where to change the settings.
Either you follow the tutorial and the preferences appear in system preferences along with all the other apps, or you roll your own and open a preferences screen from within your application. You can choose either but don't ever do both, it is just confusing. To get the look and feel of the system prefs inside your app you would need to do custom UITableViewCells, which luckily is easy - see this page of the Table View Programming Guide for how to do custom cells in a UITableView loaded through one of your view controllers.
The nice part is that you can do it all from within Interface Builder if that's what you're used to.