Animation effects in tabBarController:didSelectViewController:
Within my:
- (void )tabBarController:(UITabBarController *)tabBarController
didSelectViewController:(UIViewController *)thisViewController
{
[self doAnimationForView:thisViewController.view];
}
This delegate method is being called as it should be, EXCEPT for the very first click of a UITabBarItem .. subsequent clicks do call this method, but not the first.
I am aware of this in the Apple docs ...
For iOS ≥ v3.0, the tab bar controller cal开发者_如何学Gols this method even if the selected view controller hasn't changed. NOTE: we are not called when our code changes the tab bar contents programmatically.
For iOS < 3.0, this method is called only when the selected view controller changes. But, the method is called for programmatic changes to the selected view controller.
I need some help to unravel this mystery.
Thanks,
精彩评论