一个例子:
最佳答案
对于UITabBar
,设置delegate
并实现 UITabBarDelegate
-tabBar:didSelectItem:
.
对于 UITabBarController
,它是 UITabBarControllerDelegate
s -tabBarController:didSelectViewController:
.
关于iphone - 当我按下标签栏的一部分时调用哪个事件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3747309/