iOS开发如何实现跳转到相应权限设置里
注意:iOS8及以后调用如下方法:
NSURL *url = [NSURL URLWithString:UIApplicationOpenSettingsURLString];
先判断是否开启权限
if ([[UIApplication sharedApplication] canOpenURL:url]) { [[UIApplication sharedApplication] openURL:url]; }
NSURL *url = [NSURL URLWithString:UIApplicationOpenSettingsURLString];
先判断是否开启权限
if ([[UIApplication sharedApplication] canOpenURL:url]) { [[UIApplication sharedApplication] openURL:url]; }