2010-08-19 138 views
1

在我的RootViewController中,我有一个带有三个UITabBarItems的UITabBar。我想在单击每个UITabBarItem时加载单独的视图控制器。但我不知道如何检测酒吧项目上的点击。UITabBarItem - 如何检测点击/点击?

以前我刚UIButtons和点击时执行的代码如下:

[self presentModalViewController:infoViewController animated:YES]; 

问候, 斯蒂芬

+0

可能的复制[如何为UITabBarItem创建动作?](http://stackoverflow.com/questions/2513353/how-to-create-an-action-for -a-uitabbaritem) – Sulthan 2016-04-12 15:41:47

回答