【发布时间】:2016-05-31 22:52:14
【问题描述】:
有谁知道我可以如何编写这个自定义警报控制器(尤其是顶部区域) - 目前可以在 Apple 音乐应用程序上找到。也许有一个已知的库可以做到这一点。
我知道这就是你的动作控制器的编码方式?
let alertController = UIAlertController(title: nil, message: "Top Message Here", preferredStyle: .ActionSheet)
let cancelAction = UIAlertAction(title: "Cancel", style: .Cancel) { (action) in
// Drop View Pop up
}
alertController.addAction(cancelAction)
let action1 = UIAlertAction(title: "Action Title", style: .Default) { (action) in
//Code to Execute
}
alertController.addAction(action1)
self.presentViewController(alertController, animated: true) {
// ...
}
【问题讨论】:
标签: ios swift uialertcontroller