美文网首页开发者联盟
iOS 快速定位到系统设置界面

iOS 快速定位到系统设置界面

作者: 72行代码 | 来源:发表于2019-02-01 15:20 被阅读3次
//定位服务设置界面
NSURL * url = [NSURL URLWithString:@"prefs:root=LOCATION_SERVICES"];
if ([[UIApplication sharedApplication] canOpenURL:url]) {
    [[UIApplication sharedApplication] openURL:url];
}

//定位服务设置界面
@"prefs:root=LOCATION_SERVICES"
//GameCenter设置界面
@"prefs:root=GAME_CENTER"
//WIFI设置界面
@"prefs:root=WIFI"
//通知设置界面
@"prefs:root=NOTIFICATIONS_ID"
//蓝牙设置界面
@"prefs:root=Bluetooth"
//iCloud设置界面
@"prefs:root=CASTLE"

//调用系统邮件发邮件
- (void)gotoEmail:(NSString *)emailAccount{
    NSString * recipients = [NSString stringWithFormat:@"mailto:%@", emailAccount];
    NSString * email = [recipients stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
    [[UIApplication sharedApplication] openURL:[NSURL URLWithString:email]];
}

附:我的博客地址

相关文章

网友评论

    本文标题:iOS 快速定位到系统设置界面

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