tabbar 正常编辑, 然后获取点击按钮事件。 这是 swift 代码,oc 同理 func tabBarController(tabBarController: UITabBarController, shouldSelectViewController viewController: UIViewController) -> Bool { if find(tabBarController.viewControllers as! Array, viewController) == 2 { performSegue..... return false } return true }
tabbar 正常编辑,
然后获取点击按钮事件。
这是 swift 代码,oc 同理