我想知道如何從一個標籤欄切換到另一個標籤欄。 這裏是我的故事板I have two tab bars in story board But the problem is that I want to switch from My TabBar to MainTabBar如何從一個標籤欄切換到Xcode 8.2.1中的另一個標籤欄
這裏是我的代碼
let storyBoard: UIStoryboard = UIStoryboard(name: "Main", bundle: nil)
let MainTabBarController = storyBoard.instantiateViewController(withIdentifier: "MainTabBarController") as! MainTabBarController
self.present(MainTabBarController , animated: true, completion: nil)
你想切換新的標籤欄或新標籤? –
不,我有兩個標籤欄,你可以看到這個鏈接中的圖片https://ibb.co/gRuqDv –
好吧,有2個tabbars在圖片中,左(有一個標籤)和右(有5個標籤), 從你想要切換另一個tabbar的標籤欄? –