Call the official *Settings* app from my app on iPhone

后端 未结 9 846
名媛妹妹
名媛妹妹 2020-11-28 23:51

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 Network section within

9条回答
  •  误落风尘
    2020-11-29 00:29

    As noted in the comments below, this is no longer possible in iOS version 5.1 and after.

    If you are on iOS 5.0, the following applies:

    This is now possible in iOS 5 using the 'prefs:' url scheme. It works from a web page or from an app.

    example urls:

    prefs:root=General
    prefs:root=General&path=Network
    

    sample usage:

    [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"prefs:root=General"]]
    [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"prefs:root=General&path=Network"]]
    

提交回复
热议问题