Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to Open Keyboard's settings screen programmatically in iOS 10?

How to Open Keyboard's settings screen programmatically in iOS 10?

This code is not working in iOS 10

NSURL *keyboardSettingsURL = [NSURL URLWithString: @"prefs:root=General&path=Keyboard/KEYBOARDS"];
    [[UIApplication sharedApplication] openURL:keyboardSettingsURL];

and added URL Scheme

like image 343
Rachit Avatar asked Sep 09 '16 18:09

Rachit


2 Answers

It looks like this functionality has been disabled in iOS 10. I believe that https://developer.apple.com/library/content/qa/qa1924/_index.html is no longer valid. I checked several top keyboard apps and they have either been updated to no longer have a direct link to the preferences, or have a non-working button.

like image 52
Dima Avatar answered Oct 25 '22 20:10

Dima


is work in iOS 10+

NSURL *keboardURL = [NSURL URLWithString: @"App-Prefs:root=General&path=Keyboard/KEYBOARDS"];
[[UIApplication sharedApplication] openURL:keyboardURL];

key points:

@"App-Prefs:root=General&path=Keyboard/KEYBOARDS"

like image 33
DouSha Avatar answered Oct 25 '22 21:10

DouSha