iOS10 以上跳转系统设置

NSURL * url = [NSURL URLWithString:UIApplicationOpenSettingsURLString];
 if([[UIApplication sharedApplication] canOpenURL:url]) {
  if (@available(iOS 10.0, *)) {
  [[UIApplication sharedApplication] openURL:url options:@{} completionHandler:^(BOOL success) {
                            }];
    } else {
      [[UIApplication sharedApplication] openURL:url];
    }
 }

你可能感兴趣的:(iOS10 以上跳转系统设置)