whose view is not in the window hierarchy! 解决办法
self.view.addSubview(alert.view) self.addChildViewController(alert)