我有以下問題:我已經覆蓋的UINavigationController
popViewControllerAnimated:(BOOL)animated
,因爲我想有一個自定義動畫。代碼如下:防止UINavigationBar的popViewController動畫
- (UIViewController *)popViewControllerAnimated:(BOOL)animated
{
UIViewController *poppedCtrl = [super popViewControllerAnimated:NO];
[((customViewController *) self.topViewController) doCustomAnimation];
return poppedCtrl;
}
不幸的是,UINavigationBar
似乎忽略了我明確的禁止動畫內置而且還在動畫。
我有什麼做的,還可以防止導航欄的動畫?
任何理由,這種行爲不也爲pushNavigationItem工作:......? – horseshoe7 2014-01-22 15:59:42