0
我已经加入中的UITabBar一样的基于视图的应用程序,迷上了我的视图控制器的基于视图的应用程序使用中的UITabBar一样如下:在不工作
@interface SomeViewController : UIViewController<UITabBarDelegate> {
...
UITabBar *tabBar;
...
@property (nonatomic, retain) IBOutlet UITabBar *tabBar;
里面我的执行文件,我已经做到了这一点:
@synthesize tabBar;
- (void)tabBar: (UITabBar *)tabBar didSelectItem:(UITabBarItem *)item
{
}
我进入IB并挂钩tabBar到File's Owner tabBar。
我的问题:点击标签栏项目永远不会触发didSelectItem方法。我错过了还是错误地做了一步?
谢谢!我无法相信我忘了这一点。我会尽快接受这个答案。 – 2011-04-24 19:28:54