Я работаю над UIAlertController
.Здесь, когда появляется предупреждение, мы видим прозрачный фон.Но строка состояния не подпадает под это прозрачное.Пожалуйста, посмотрите изображение, строка состояния все еще видна.
Мой код для UIAlertController
:
func showAlert(title: String, message: String,btnsText: [String], tag:String) {
let alertController = UIAlertController(title: title, message: message, preferredStyle: UIAlertControllerStyle.alert)
alertController.accessibilityLabel = tag
for i in 0 ..< btnsText.count {
alertController.addAction(UIAlertAction(title: btnsText[i], style: UIAlertActionStyle.default, handler:
{(alert: UIAlertAction!) in self.delegate?.AlertCompleted!(title: alert.title!,tag: alertController.accessibilityLabel!)}))
}
self.present(alertController, animated: true, completion: nil)
}
Пожалуйста, помогите мне достичь этого.