如何解除splitViewController右侧的模态视图控制器?

时间:2011-12-30 22:22:54

标签: ios uisplitviewcontroller

我在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];

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

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

0 个答案:

没有答案