Manage, drag and drop your tab into your โfile ownerโ in IB and set it as a delegate. Then remove this code in the viewcontroller.m file:
- (void)tabBar:(UITabBar *)tabBar didSelectItem:(UITabBarItem *)item { if(item.tag == 0) {
Go back to IB and set each element of the tab bar in the tab bar with a tag. You should check every case in your didSelectItem file, so if you have several different tags, etc. The way I did it.
source share