我是新來的swift和IOS開發。我正在製作選項卡式應用程序(3個視圖)。例如,FirstView,SecondView和ThirdView。 FirstView有一個打開addNewSession視圖的按鈕,addNewSession視圖有一個返回FirstView的Back按鈕。問題是從addNewSession視圖返回後Tab鍵消失Swift:點擊後退按鈕後錯過標籤欄
FirstView to addNewSession視圖。
@IBAction func toAddNew(sender: AnyObject) {
let addNewSession = self.storyboard?.instantiateViewControllerWithIdentifier("addNewSession") as addNew
self.presentViewController(addNewSession, animated: true, completion: nil)
}
addNewSession視圖的firstView
@IBAction func backToPrev(sender: AnyObject) {
println("test1")
let FirstView = self.storyboard?.instantiateViewControllerWithIdentifier("FirstView") as FirstViewController
self.presentViewController(FirstView, animated: true, completion: nil)
}