2010-03-12 70 views

回答

2

是的,我喜歡。我必須讓它工作。

設置你的類的人選擇器的委託(pp.delegate =自我;)

然後實現:

- (void)navigationController:(UINavigationController *)navigationController didShowViewController:(UIViewController *)viewController animated:(BOOL)animated 
{ 
    if([navigationController.viewControllers count] > 1) { 
     navigationController.delegate = nil; 
     [navigationController popViewControllerAnimated:NO]; 
    } 
} 

看來工作最好與動畫關閉,但仍然有效用它但有點愚蠢。只在模擬器上測試過。

D

相關問題