1

我在弹出窗口中遇到动画模态转换的问题。出于某种原因,当我将过渡设置为动画时,弹出框会水平调整大小。当我没有动画时,没有调整大小。图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

4

0 回答 0