Possible Duplicate:
Opening the Settings app from another app
I would like to switch my user to settings app if he answered by no for using his localisation. i'm using an alert view to do that
Possible Duplicate:
Opening the Settings app from another app
I would like to switch my user to settings app if he answered by no for using his localisation. i'm using an alert view to do that
Use this line:
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"prefs:root=General"]]
See this question for more details.
Edit: As Reed wrote in the comments, this is not possible in iOS 5.1.