我家的ViewController是Tabbarcontroller如何解僱,並彈出來的ViewController同時
- 從的TabBar我瀏覽到(A)的ViewController(TabarViewcontroller - > A(視圖 - 控制)
- 從(視圖 - 控制)我推(B)的ViewController
- 從B(的ViewController)我提出(C)的ViewController
- 當我駁回(c)中的ViewController我要顯示(A)的ViewController 或(主頁)TabbarviewController
所以,我想先解僱呈現視圖 - 控制,然後我想彈出我以前推控制器
這裏是我的導航流
From Tabbarviewcontroller
1- let aVC = self.storyboard?.instantiateViewController(withIdentifier: "a") as! OrderListingViewController
self.navigationController?.pushViewController(aVC, animated: true)
From A viewcontroller
2- let bVC = self.storyboard?.instantiateViewController(withIdentifier: "b") as! OrderListingViewController
self.navigationController?.pushViewController(bVC, animated: true)
From B viewcontroller
let cVC = self.storyboard?.instantiateViewController(withIdentifier: "c") as! RejectOrderViewController
cVC.providesPresentationContextTransitionStyle = true
cVC.definesPresentationContext = true
cVC.modalPresentationStyle=UIModalPresentationStyle.overCurrentContext
self.tabBarController?.presentVC(cVC)
所以在C的viewController時,我辭退我想要顯示Tabbarviewcontroller或(A)ViewController
你有UNwindSegue的想法?? –