我在splitViewController的详细视图中提供了一个模态视图控制器,其代码如下:

AddressViewController *addressViewController = [[AddressViewController alloc] initWithNibName:@"AddressViewController" bundle:nil];
addressViewController.modalPresentationStyle = UIModalPresentationCurrentContext;
addressViewController.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;
[self presentModalViewController:addressViewController animated:YES];
addressViewController.view.frame = CGRectMake(self.view.frame.origin.x, self.view.frame.origin.y, self.view.frame.size.width, self.view.frame.size.height);
[addressViewController release];

但是当我关闭模态视图控制器时,它会翻转,以便它在短时间内落后于主视图控制器 . 转换结束后,它会“跳转”到正确的位置 .

有人知道如何防止这种情况吗?