我想知道如何从一个标签栏切换到另一个标签栏。 这里是我的故事板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的标签栏? –