Mother View -> Child View (push)
当我执行手动展开时,回到母亲视野,我的母亲观看的“prepareForSegue”没有被击中。
override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
println(segue.identifier) //unwind segues don't print!
}
@IBAction func unwindToTabBar(segue:UIStoryboardSegue){
}
答案 0 :(得分:0)
展开的prepareForSegue
需要在子viewController中,因为它正在准备回程。在这种情况下,destinationViewController
将是母视图控制器。