我有以下问题:我已经覆盖了
UINavigationController
的popViewControllerAnimated:(BOOL)animated
,因为我想要一个自定义动画。代码如下:- (UIViewController *)popViewControllerAnimated:(BOOL)animated
{
UIViewController *poppedCtrl = [super popViewControllerAnimated:NO];
[((customViewController *) self.topViewController) doCustomAnimation];
return poppedCtrl;
}
不幸的是,UINavigationBar
似乎忽略了我明确禁用内置动画,但它仍然是有动画效果的。
我需要做什么来防止导航栏的动画效果?