【发布时间】:2009-07-09 02:22:03
【问题描述】:
我的应用是横向的。我想在横向使用 MFMailComposeViewController 但找不到任何关于方向的通知。在横向中,MFMailComposeViewController 仅显示邮件撰写窗口的顶部,在横向时从左侧进入。基本上它覆盖了横向屏幕的一半。有没有办法让邮件撰写窗口以横向而不是纵向显示?
--- 编辑 --- 我想加载邮件撰写的视图是这样派生的:
//from first UIViewController
[self presentModalViewController:secondView animated:YES];
//from secondView (a UIViewController), I load the info view, which is where the mail compose shows
InfoController *infoController = [[InfoController alloc] initWithNibName:@"Info" bundle:[NSBundle mainBundle]];
[self.view addSubview:infoController.view];
从上面看,邮件撰写父视图是第三个加载的。在 info.plist 中,我这样做:
UIInterfaceOrientation = UIInterfaceOrientationLandscapeRight
【问题讨论】:
标签: cocoa-touch iphone-sdk-3.0 uiviewcontroller