Reputation: 3
Im having a problem opening the settings preferences in my IOS iphone app. At the moment im just using a simple button to test and it doesn't seem to be working correctly.
Basically when I click the button I want a specific settings preference page to open. This is what Im currently using within my buttons IBACTION:
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"prefs:root=General"]];
Hope you guys can help me out with a solution for this, thanks in advance.
Upvotes: 0
Views: 3357
Reputation: 5555
try this:
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"prefs://"]];
should work in iOS 5
... update:
opening with the prefs url was disabled in iOS 5.1
sebastian
Upvotes: 4