我是 iphone 开发的新手。我在 Xcode4.2 和 iOS5 中工作。我已经用于将一个视图导航到另一个视图:这工作正常..
-(IBAction)viewFullProfile:(id)sender
{
OperatorFullProfile *operatorFullProfile = [[OperatorFullProfile alloc] initWithNibName:@"OperatorFullProfile" bundle:nil];
[self presentModalViewController:operatorFullProfile animated:YES];
}
但是当我解雇 OperatorFullProfile 时,它并没有被解雇。对于解雇代码:
-(IBAction)Cancel:(id)sender
{
[self.parentViewController dismissModalViewControllerAnimated: YES];
// [self.parentViewController.parentViewController dismissModalViewControllerAnimated:YES];
// [self dismissViewControllerAnimated:YES completion:nil ];
}
我正在努力解决这个问题,请帮忙。