if #available(iOS 8.0, *){
                    if let url = URL(string: UIApplication.openSettingsURLString),
                        UIApplication.shared.canOpenURL(url){
                        print("可以打开设置")
                        UIApplication.shared.openURL(url)
                    }else{
                        print("不可以打开设置")
                    }
                }

  

posted on 2018-10-17 11:23  懂事长qingzZ  阅读(242)  评论(0编辑  收藏  举报