简体   繁体   中英

How to open general settings (not in the app settings) from the app in iOS 8?

I know about this

    if (&UIApplicationOpenSettingsURLString != NULL) {
    NSURL *appSettings = [NSURL URLWithString:UIApplicationOpenSettingsURLString];
    [[UIApplication sharedApplication] openURL:appSettings];
} 

But I wanna know if its possible to go to the general settings. I need users to enable the keyboard but landing in the app settings confused many users. Any suggestions to open the general settings and even if possible the keyboards section?

You cannot open system apps in iOS. You can show them the path to the message though.

'Settings->General->Keyboard' etc in a modal whenever you wish to display this information to the user.

从iOS 10开始,可以使用“App-Prefs:root”URL:

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"App-Prefs:root"]];

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM