大家好我有问题,所以我使用UIViewController来推送基于窗口的应用程序的一些视图和
这是一个问题:
Accessibility_view_Controller * accessibility_controller = [Accessibility_view_Controller alloc];
accessibility_controller.path_for_save = self.path_2;
accessibility_controller.Supporters_survey = [ self.Supporters_survey_mut objectAtIndex:row_value];
accessibility_controller.Supporters_info = [self.Supporters_info_mut objectAtIndex:row_value];
[self.navigationController pushViewController:accessibility_controller animated:YES];
[accessibility_controller release];
我现在在accessibility_controller视图,但我想回到我称之为的视图,我的意思是父视图,我知道我可以从导航栏执行此操作,但我想通过点击一行来完成。那么在窗口上推送accessibilty控制器的父视图控制器的代码是什么。
答案 0 :(得分:0)
只需使用[[self navigationController] popViewControllerAnimated:YES];
即可返回。这是非常详细记录here