Search code examples
iphoneios6

How to open bluetooth settings screen


I am using this code to open Bluetooth screen settings:

NSURL *url = [NSURL URLWithString:@"prefs:root=General&path=Bluetooth"];
[[UIApplication sharedApplication] openURL: url];

But it's not working, I am using iOS 6.0 SDK


Solution

  • I believe opening the settings app is deprecated in iOS 5.1.