的顶部的参考视图我在一些UIViewControlle,需要返回到前一个,我用这个代码:如何获得在NavigationController
NSLog(@"%@", [self.navigationController popViewControllerAnimated:YES]);
// Here I need to reference to the view I am going go to to call some function before this view is being displayed
NSLog(@"Done button pressed");
但(写在我需要获得对执行弹出功能后显示的视图的引用(上一个viewController。
两者的回报'(空)'如果叫'popViewController前后获得参考对象'功能! –
如果您在调用poViewController _method_之前调用它,该怎么办? – Geoffroy
它返回当前视图控制器,但我需要一个ref到前面的viewController –