【发布时间】:2013-10-21 11:56:49
【问题描述】:
我试图通过减小其宽度和高度来在 iPad 上显示 modalView,但问题是它没有居中对齐。在 iOS 6 中它曾经可以正常工作,但在 iOS 7 中它不是居中对齐的。
下面是我的代码:
m_helpQA = [[HelpQAViewController alloc]init];
m_helpQA.modalPresentationStyle = UIModalPresentationFormSheet;
[self presentViewController:m_helpQA animated:YES completion:NULL];
m_helpQA.view.superview.bounds = CGRectMake(0, 0, 350, 250);//Dimensions of ModalView.
目前我是这样理解的
【问题讨论】:
标签: ipad ios7 modalviewcontroller presentmodalviewcontroller