1
我對swift開發很新,但我試圖在我的應用程序中實現後退按鈕。導航欄不顯示popViewControllerAnimated()不工作
,我有以下佈局在我Main.storyboard
正如這幅畫但是導航欄顯示時,我的午餐我的應用程序,他們是不可見的觀察。
我還使用一個按鈕,將帶我回到以前的觀點與
self.navigationController?.popViewControllerAnimated(true)
嘗試,但並未奏效
更新: 以上犯規顯示出圖像初始控制器是我的ViewController
問題是所有路由實際上是一個P ageContentViewController這是從視圖控制器,其檢查FB登錄比電話叫:
dispatch_async(dispatch_get_main_queue()){
self.setViewControllers([self.getViewControllerAtIndex(0)] as [UIViewController], direction: UIPageViewControllerNavigationDirection.Forward, animated: false, completion: nil)
}
,所以我不能改變我的初始視圖控制器。 我不知道如何解決這個問題。 有沒有辦法從Main.storyboard或程序解決方案來做到這一點?