Hey All. I'm wondering if it is possible to place conditions on what items will appear in the settings app for an application's settings bundle.
For example: I have several settings related to behavior of the camera in my app. But I do not want those items to appear in the settings app on devices that do not have a camera.
I know how to check and do all of this in the app easy enough, but cannot seem to be able to find anything about this for the settings bundle. I saw at least one question about this from I think mid 2010 but it hasn't been answered.
Any help would be greatly appreciated.
My understanding is that the settings are determined at compilation time and cannot be modified at runtime.
Here's a similar question: Hiding preferences items in the settings bundle
Two options:
Create in-app preference settings. However, I remember reading on the Apple Dev site that Apple recommends against this.
Add a value to the camera related settings: "Unavailable". When the app is launched, determine if there is a camera, if not, programmatically set those settings to "Unavailable".
EDIT: I just came across this: OnlyDisplayOnInterfaceIdiom.