【发布时间】:2012-03-04 11:06:26
【问题描述】:
我在 iPad 的主控端有一个 PatientTableViewController,它有一个用于添加新患者的按钮。它通过 popover segue 转换到这个 NewPatientViewController。
在 NewPatientViewController 中,我有一个 Done 按钮,它代表 PatientTableViewController:
- (void)newPatientViewController:(NewPatientViewController *)sender withZipCode:(NSNumber *)zipCode andFirstName:(NSString *)firstName andLastName:(NSString *)lastName
{
[self dismissViewControllerAnimated:YES completion:NULL];
[self dismissModalViewControllerAnimated:YES];
[sender dismissModalViewControllerAnimated:YES];
[sender dismissViewControllerAnimated:YES completion:NULL];
}
我上面尝试的方法都不起作用。但是,如果我使用模态转场,一切正常。瓦?
【问题讨论】:
标签: objective-c xcode cocoa-touch ipad xcode4.2