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