Swift Xcode 6或iOS 8错误:UIAlertController未显示消息?

Swift Xcode 6或iOS 8错误:UIAlertController未显示消息?,swift,ios8,uialertcontroller,Swift,Ios8,Uialertcontroller,在我的视图控制器中,我有以下代码来创建UIAlertController: var avc = UIAlertController(title: "Location", message: "Please Enter A Location", preferredStyle: UIAlertControllerStyle.Alert) self.navigationController!.presentViewController(avc, animated: true,

在我的视图控制器中,我有以下代码来创建
UIAlertController

 var avc = UIAlertController(title: "Location", message: "Please Enter A Location", preferredStyle: UIAlertControllerStyle.Alert)
            self.navigationController!.presentViewController(avc, animated: true, completion: nil)
在模拟器中运行它,我明白了


很确定这是Xcode 6 beta 7或swift中的一个bug?想法?

找到了答案,我应该在
UIAlertController
中添加一个操作,以便显示消息:

    alert.addAction(UIAlertAction(title: "OK", style: UIAlertActionStyle.Default, handler: nil))

这看起来像个虫子。我会提交一份报告。