2016-03-14 48 views
0

以下是iOS應用程序中帳戶選項卡的設計。 enter image description here將按鈕連接到導航視圖控制器

我想連接登錄按鈕和登錄界面。 然後將編輯界面中的完成按鈕連接到Account界面。

但是,當我使用show或model segeue連接它們時,會發生什麼情況! enter image description here

反正有沒有通過編碼連接它們而沒有得到這個結果?

請問你能幫助我嗎?我必須做些什麼才能使它工作?

回答

0

你應該試試這個,如果它的根視圖控制器

self.navigationController?.popToRootViewControllerAnimated(true) 

或者,如果它不是那麼

// pops to the 3rd controller in the stack, because indexing starts with 0 
navigationController!.popToViewController(navigationController!.viewControllers[2], animated: false) 
相關問題