2010-03-12 68 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

相关问题