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