【发布时间】:2016-06-04 06:16:16
【问题描述】:
我打算解散我当前的UIViewController 并提交给新的UIViewController。
我使用了以下代码
let newViewController: ViewController = self.storyboard?.instantiateViewControllerWithIdentifier("ViewController") as! ViewController
self.presentViewController(newViewController, animated: false, completion: {
self.dismissViewControllerAnimated(false, completion: nil)
})
它给出了以下错误
2016-06-04 11:40:59.864 myApp[851:117649] 试图解除
演示控制器,同时已经过渡。 (<_uifullscreenpresentationcontroller:>) 2016-06-04 11:40:59.878 ePassBook[851:117649] transitionViewForCurrentTransition 未设置,演示控制器 在演示过程中被解雇? (<_uifullscreenpresentationcontroller:>)
【问题讨论】:
-
dismiss the action 点击关闭 UIViewController 然后自动 Present anotherViewController?
标签: ios objective-c swift uiviewcontroller segue