UIAlertControl swift

let alertController = UIAlertController(title: "开始!", message: "游戏就要开始,你准备好了吗?", preferredStyle: UIAlertControllerStyle.Alert)
alertController.addAction(UIAlertAction(title: "Ready Go", style: UIAlertActionStyle.Default, handler: nil))
self.presentViewController(alertController, animated: true, completion: nil)

posted @ 2016-12-16 23:33  乱笙歌  阅读(134)  评论(0编辑  收藏  举报