【发布时间】:2012-01-10 13:18:07
【问题描述】:
我想在 iOS5 中使用 UIView 的 presentModalViewController 方法在 iPad 中显示一个弹出窗口。
即使我将 modalPresentationStyle 设置为 UIModalPresentationFormSheet,它也只显示为全帧大小。
我之前在iOS4中使用过相同的代码,它可以显示为弹出窗口。如何在 iOS5 中修复它?
DetailViewController *d = [[DetailViewController alloc] initWithNibName:nil bundle:nil];
self.modalPresentationStyle = UIModalPresentationFormSheet;
[self presentModalViewController:d animated:YES];
谢谢。
【问题讨论】:
-
你能告诉我们你正在使用的代码吗?
-
原帖中添加的代码。