Open Settings.app When Button is Tapped in UIAlertView on iPhone SDK [duplicate]

此生再无相见时 提交于 2019-12-02 04:12:43
Midhun MP

iOS 8 and iOS 9

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:UIApplicationOpenSettingsURLString]];

There is no way to do this.

Because till now (11th Jan 2013) there is no url scheme available for settings app.

iOS 6

You can't do this on iOS 6.

iOS 5 and below (< iOS 5.1)

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"prefs:root=General"]];

Please refer this answer for more info Call the official *Settings* app from my app on iPhone

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!