I watched for a long time how it was possible in iOS 5.1 and below, and that this is impossible in any version above this.
But how do other applications do this?
So far I have tried the following (tested on iOS 8.1 simulator, on Xcode ):
- (void)turnOnBlueToothPressed:(id)sender { [[UIApplication sharedApplication] openURL:[NSURL URLWithString:UIApplicationOpenSettingsURLString]]; }
Which opens the application settings. Not perfect, but that's what it is.
AFAIK using the following:
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"prefs:root=General&path=Bluetooth"]]
Does not work any more. Alternatively, can someone point me to the official documentation , which says that it no longer works in any version> iOS 5.1 ?
source share