我在一个iOS应用程序中工作,我需要在该应用程序中填充一条AlertController消息“核心功能需要位置权限”。但是,在显示alertController时,该消息看起来像被截断了。我不知道发生了什么请帮助我。
let alertController = UIAlertController(title: nil, message: "Location permission is needed for core functionality", preferredStyle: .alert)
let settingsAction = UIAlertAction(title: NSLocalizedString("Settings", comment: ""), style: .default) { (UIAlertAction) in
UIApplication.shared.open(URL(string: UIApplicationOpenSettingsURLString)! as URL, options: [:], completionHandler: nil)
}
alertController.addAction(settingsAction)
self.present(alertController, animated: true, completion: nil)