我試圖展開一個UIStoryboardSegue子類。如果主窗口的rootViewController是一個UIViewController子類,一切都很好。展開一個UINtoryboardSegue子類在UINavigationController中
但是,如果它是一個UINavigationController子類,我的segue永遠不會在展開時觸發。
我創建了一個示例應用來證明這一點,並把它在Github上: https://github.com/simonmaddox/CustomUnwindSegue
+1與我們分享 – TonyMkenu
原來,它不是JUST UINavigationController,而是任何Container ViewController。所以,如果你使用addChildViewController/removeFromParentViewController構建一個組合的接口,那麼segueForUnwindingToViewController:fromViewController:identifier需要被添加到組合視圖控制器(名爲addChildViewController的那個) - 感謝你的帖子是我引發這個額外警告的原因我的問題的來源。 –