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