有谁知道我如何编写这个自定义警报控制器(特别是顶部区域) - 目前在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) {
// ...
}
Run Code Online (Sandbox Code Playgroud)
我是ios的新手,用swift开发我的第一个应用程序.此应用程序包含许多弹出窗口与应用程序播放.我想让这个非常有吸引力.
内置的UIAlertcontroller破坏了我的外观和感觉.那么有没有办法完全自定义UIAlertController.
我想改变字体和颜色的title,消息还背景颜色和按钮太多.
谢谢.