我有一个按钮&当我点击按钮它移动到另一个视图控制器然后有一个后退按钮,当我点击它需要时间回去
我这样做
GeoNewsViewController*targetController=[[GeoNewsViewController alloc] init];
[self.navigationController pushViewController:targetController animated:YES];
答案 0 :(得分:4)
-(void) viewWillDisappear:(BOOL)animated{
//remove unnecessary code here if u have
//if u use any webservice then cancel connection here
//stop any animations if
}
你可以用这样的动画编程返回
[self.navigationController popViewControllerAnimated:YES];