美文网首页
iOS 程序内如何跳转到系统设置界面

iOS 程序内如何跳转到系统设置界面

作者: 小小东 | 来源:发表于2015-08-21 16:21 被阅读723次

网站:

https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIApplication_Class/index.html#//apple_ref/doc/constant_group/Settings_Launch_URL

主要代码:

NSURL *url = [NSURL URLWithString:UIApplicationOpenSettingsURLString];

[[UIApplication sharedApplication] openURL:url];

在方法中直接调用这个两行代码即可,可以在程序内直接调用系统的设置界面。

相关文章

网友评论

      本文标题:iOS 程序内如何跳转到系统设置界面

      本文链接:https://www.haomeiwen.com/subject/ufdbqttx.html