我想modalViewControlle
从应用程序的第二个屏幕显示 r,当我关闭控制器时,它应该导航到第一个屏幕。下面的代码在 iPhone 4、5 和 iPod Touch 中运行良好,但在 iPAD 中却不行。目标是当我关闭modalViewController
它时,它不应该回到第二个屏幕,但它应该显示第一个屏幕。
ShareEmail *shareEmail = [[ShareEmail alloc] initWithNibName:[NSString stringWithFormat:@"%@",xibShareEmail] bundle:nil];
shareEmail.fromWer = @"ownPer";
[self presentModalViewController:shareEmail animated:NO];
[shareEmail release];
[self.navigationController popToViewController:[self.navigationController.viewControllers objectAtIndex:1] animated:YES];
在共享电子邮件课程中
[self dismissModalViewControllerAnimated:YES];