Call the official *Settings* app from my app on iPhone(Location Service)

Posted by zt9788 on Stack Overflow See other posts from Stack Overflow or by zt9788
Published on 2012-08-28T03:37:00Z Indexed on 2012/08/28 3:38 UTC
Read the original article Hit count: 122

Filed under:
|
|

At one point in my app, I would like to redirect the user to the official Settings app. If possible, I also want go straight to the Location service section within the Settings app.

i see

Call the official *Settings* app from my app on iPhone but In iPhone4 the following code does not respond(my ios version 5.1.1):

 [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"prefs:root=LOCATION_SERVICES"]];//1 call Location service
 [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"prefs:root=WIFI"]];//2 //call wifi
 [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"prefs:root=General&path=Network"]];//3

© Stack Overflow or respective owner

Related posts about iphone

Related posts about ios