Tab Bar Controller Delegate method does not gets called each time I tap on tab bar item

1k Views Asked by At

I've tried with Tab Bar Controller delegate method

- (void)tabBarController:(UITabBarController *)tabBarController didSelectViewController:(UIViewController *)viewController

implementing in a view controller and it works accordingly for the first time after launch. But when I switch to another tab item and coming back again to that specific tab item where I implemented the delegate, the delegae method does not gets called.

Why is it happening ? it suppose to call each time I tap on tab item right ? Am I doing anything wrong or what would be the proper way to do it.

1

There are 1 best solutions below

0
On

I think you are not setting delegate properly, If you give code or some other information the it will be easy to understand and solve problem