开发者

iphone : Tabbar method not call during compilation?

开发者 https://www.devze.com 2023-03-21 02:30 出处:网络
I want an activity indicator on a particular tab bar. I ha开发者_开发问答ve applied the UITabBarDelegate protocol on the .h file.

I want an activity indicator on a particular tab bar. I ha开发者_开发问答ve applied the UITabBarDelegate protocol on the .h file.

I wrote this method for selecting particular tabbar,

- (void)tabBar:(UITabBar *)tabBar didSelectItem:(UITabBarItem *)item

this method is not called during compilation. What should I do?


Have you also did your IBOutlet connection to the tab bar?


I think you forgot to write

   tab.delegate = self;
0

精彩评论

暂无评论...
验证码 换一张
取 消