Setting aside whether or not you can submit an app to the App Store with the is code or not, I'd like to verify that indeed, in iOS 10.x, this code for calling the iOS Settings app (General tab section) does not work for anyone:
if([[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:@"prefs:root=General"]]){
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"prefs:root=General"] options:@{} completionHandler:nil];
}
I also set the 'prefs' URL handler within the LSApplicationQueriesSchemes key in my project's Info.plist.
I cannot get the above code to work with any Settings.app URL. I'm primarily debugging on my iPhone 6 Plus and iPad Pro 12.9 inch, both running iOS 10.2 GM.
Can anyone else get this code to work on iOS 10.x?