【发布时间】:2015-09-26 01:22:36
【问题描述】:
这是我的警报,效果很好。我想向警报中添加一个图像,当警报出现时,它会在文本旁边显示,如果它有所作为,我会在 SpriteKit 中的 SKScene 中。
var alertController = UIAlertController(title: "How to Skate", message: "Tap the screen to perform a trick and jump over the obsticles (You can grind on rails) The game will end when you hit a highlighted red, orange or yellow obstacle. That's it! + Image", preferredStyle: UIAlertControllerStyle.Alert)
alertController.addAction(UIAlertAction(title: "Cool!", style: UIAlertActionStyle.Cancel, handler: nil))
self.view?.window?.rootViewController?.presentViewController(alertController, animated: true, completion: nil)
【问题讨论】:
标签: ios swift uialertcontroller