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