弹出窗口中的动画模式视图过渡

时间:2012-06-01 19:25:54

标签: ios

我在弹出框中遇到动画模态转换问题。出于某种原因,当我将过渡设置为动画时,弹出窗口会水平调整大小。当我没有动画时,没有调整大小。图1是动画,图2是没有。

我正在创建转换的代码是:

StoreDetailViewController *sdvc = [[StoreDetailViewController alloc] initWithNibName:@"StoreDetailViewController" bundle:nil];

sdvc.modalPresentationStyle = UIModalPresentationCurrentContext;
sdvc.modalTransitionStyle = UIModalTransitionStyleCoverVertical;
sdvc.modalInPopover = YES;

sdvc.play = playData;
sdvc.st = self;
sdvc.indoors = indoors;

[parent presentModalViewController:sdvc animated:YES];

http://i.stack.imgur.com/RtcEb.png

http://i.stack.imgur.com/ioY0R.png

0 个答案:

没有答案