objective c - Change iphone settings based on device capabilities -


Is it possible to hide some application settings in the standard settings application based on existing device capabilities? For example, the user can choose whether to show the Compass calibration UI, but I do not want to show this setting if the device does not have a compass (like iPhone 3G).

OK, I think that's not really possible, but I can be reminded of some simple (or any other available option) here ...

This is possible, and it has been recommended to do so. An example is whether the device can make phone calls:

  if ([[UIApplication shared application] canOpenURL: [NSURL URLWithString: @ "tel:"]]) { // do stuff with a phone number}  

There are other ways to look at the device capabilities. Find the documentation to find them. For example, a + (BOOL) heading is available in the CLLocation docs method, which tells you that you can find it on the top.


Comments