iOS Launching Settings -> Restrictions URL Scheme

后端 未结 13 1304
自闭症患者
自闭症患者 2020-11-22 09:42

I\'ve recently discovered the awesome iOS5 custom Settings URL Scheme, which can be explained in detail at this great website.

I\'ve found this to work, dir

13条回答
  •  旧时难觅i
    2020-11-22 10:19

    As of iOS8 you can open the built-in Settings app with:

    NSURL *url = [NSURL URLWithString:UIApplicationOpenSettingsURLString];
    if ([[UIApplication sharedApplication] canOpenURL:url]) {
       [[UIApplication sharedApplication] openURL:url];
    }
    

    The actual URL string is @"app-settings:". I tried appending different sections to the string ("Bluetooth", "GENERAL", etc.) but seems only linking to the main Settings screen works. Post a reply if you find out otherwise.

提交回复
热议问题