iOS 跳转到应用设置界面

      支持iOS8.0以上版本

 if ([[UIDevice currentDevice].systemVersion floatValue]>=8.0f) {

     NSURL * url = [NSURL URLWithString:UIApplicationOpenSettingsURLString];

    

    if([[UIApplication sharedApplication] canOpenURL:url]) {

        NSURL *url =[NSURL URLWithString:UIApplicationOpenSettingsURLString];

        [[UIApplication sharedApplication] openURL:url];

    }

}

猜你喜欢

转载自blog.csdn.net/howlong12345/article/details/51654874