我想呈現並推送到另一個故事板文件中的視圖控制器。但是我無法擺脫TabBar的顯示效果,這是我的代碼和我如何設置的屏幕截圖。從應用委託推視圖控制器
func application(application: UIApplication, openURL url: NSURL, sourceApplication: String?, annotation: AnyObject) -> Bool {
let rootView = self.window!.rootViewController as! TabBarViewController
rootView.selectedIndex = 4
let storyBoard = UIStoryboard(name: "Main", bundle: nil)
let navVC = storyBoard.instantiateViewControllerWithIdentifier("moreNav") as! UINavigationController
storyBoard.instantiateViewControllerWithIdentifier("moreView") as! MoreTableViewController
let vc = navVC.visibleViewController as! MoreTableViewController
let pdfLockerSB = UIStoryboard(name: "PDFLocker", bundle: nil)
let pdfvc = pdfLockerSB.instantiateViewControllerWithIdentifier("pdfLockerTable") as! PDFLockerTableViewController
vc.navigationController?.pushViewController(pdfvc, animated: true)
return true
}
任何想法我做錯了嗎?這是一個UITabBarController鏈接到一個UINavigationController鏈接到一個UITableViewController。
我有segue所有設置,但我不知道它爲什麼不執行它。使用一鍵或執行
你得到黑屏? – techloverr
不,我不是。我得到更多屏幕。它只是沒有繼續下去。 – trever
那個navigationVC的索引是4,對嗎? – techloverr