How can I implement disabled application settings?

2020-02-15 05:23发布

问题:

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...

回答1:

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.



回答2:

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.