我正在开发一个基于导航的项目。
从A到B,我这样做:
First *firstClass=[[First alloc] initWithNibName:@"first" bundle:nil];
[self.navigationController pushViewController:firstClass animated:YES];
然后从B到C,我这样做:
Second *secondClass=[[Second alloc] initWithNibName:@"Second" bundle:nil];
[self.navigationController pushViewController:secondClass animated:YES];
Now, in C, I do this,trying to get back to A:
- (IBAction)goBack: (id)sender
{
[self.navigationController popToRootViewControllerAnimated:YES];
}
通过这样做,我成功地能够导航回A,但是当我
时应用程序崩溃了在A移动后更改A中的设备方向,当A
时,它不会崩溃第一次加载。对此有何帮助?