我的应用程序是基于横向的。我想在横向使用 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