【发布时间】:2015-08-09 02:09:22
【问题描述】:
我在关闭多点连接窗口后收到此错误:
"Warning: Attempt to present < AudioWaves.ViewControllerJoin: 0x176cf2d0> on < AudioWaves.ViewController: 0x17594de0> whose view is not in the window hierarchy!"
下面是我的代码,
func browserViewControllerDidFinish(
browserViewController: MCBrowserViewController!) {
// Called when the browser view controller is dismissed (ie the Done
// button was tapped)
let ViewControllerjoin:ViewControllerJoin = ViewControllerJoin()
self.presentViewController(ViewControllerjoin, animated: true, completion: nil)
dismissViewControllerAnimated(true, completion: nil)
}
如果我在新的视图控制器出现之前关闭浏览器,浏览器就会关闭,但是应用程序只会进入一个没有错误的空白黑屏。
【问题讨论】:
标签: ios swift segue multipeer-connectivity