我正在尝试通过缩小宽度和高度在iPad上显示一个模态视图,但问题是它没有居中对齐。在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.
目前我是按照以下方式进行操作