Animation tabBarController:didSelectViewController:

Animation tabBarController:didSelectViewController:,animation,Animation,在我的范围内: - (void )tabBarController:(UITabBarController *)tabBarController didSelectViewController:(UIViewController *)thisViewController { [self doAnimationForView:thisViewController.view]; } 除了第一次单击UITabBarItem外,此委托方法正

在我的范围内:

- (void )tabBarController:(UITabBarController *)tabBarController
                          didSelectViewController:(UIViewController *)thisViewController
{
     [self doAnimationForView:thisViewController.view];
}
除了第一次单击UITabBarItem外,此委托方法正在按其应该的方式调用。。随后的单击会调用此方法,但不会调用第一个方法

我在苹果文档中知道这一点

对于iOS≥ v3.0中,选项卡栏控制器调用此方法,即使 选定的视图控制器尚未更改。注意:我们在 我们的代码以编程方式更改选项卡栏内容

对于iOS<3.0,仅当选定的视图 控制器更改。但是,该方法需要进行编程更改 到选定的视图控制器

我需要一些帮助来解开这个谜


谢谢,

您可以也应该将您的解决方案作为此问题的答案发布(稍后您可以接受)。请将您的解决方案作为答案发布,而不是用答案编辑来破坏原始问题!我已回滚您的编辑。