Sorry, but this is not possible. You are right that all you can do is different settings. Package for iPads and iPhones. Since iOS 4 Settings plists may be device dependent: Root ~ ipad.plist will be used on iPad and Root ~ iphone.plist on iPhone. If not, Root.plist will be used.
So, from my point of view, you can achieve part of your goal using these 2 settings. For more specific cases, you can set some default values at application startup. Settings.bundle cannot be changed directly from the code, so you cannot delete or disable certain settings, but you can change its value to a specific default value for a specific device. Each item in Settings.bundle is associated with a key in NSUserDefaults
, so you can simply set the values in NSUserDefaults
, and the settings application will automatically reflect this. However, this will be saved elsewhere. You can simply read it in the same way as with a set of settings, also through NSUserDefaults
.
You can find sample code in this answer fooobar.com/questions/1014481 / ...
Another interesting option is to use https://github.com/futuretap/InAppSettingsKit , which adds the same with its own settings interface to the application. And these internal settings are synchronized with the device settings, but you have more control over it.
source share