MFMailComposeViewController仅在屏幕顶部显示带有取消和发送按钮的栏。景观代码:
MFMailComposeViewController *controller = [[MFMailComposeViewController alloc] init];
controller.mailComposeDelegate = self;
[controller setSubject:@"In app email..."];
[controller setMessageBody:@"...Hi, all...." isHTML:NO];
//[self presentModalViewController:controller animated:YES];
controller.view.frame = CGRectMake(0,0,480,320);
[self.view addSubview:controller.view];
[controller release];问题出在哪里?
发布于 2009-10-28 22:25:58
我以前见过这个问题,据我所知,你不应该用addsubview代替presentModalViewController方法。
发布于 2011-07-09 03:53:20
我得到了这个行为,以及从侧面进入的模式视图,模式视图在演示过程中停了四分之一。
在我的应用程序中,我有许多堆叠了addSubview:的视图控制器。我不知道为什么,但它的工作方式是从底部视图控制器呈现模式视图。我做了这样的事情:
[((FirstViewController*)[UIApplication sharedApplication].delegate).firstViewControllerInstance sendEmailwithInfo];希望这能有所帮助!也许有人可以向insite解释为什么会发生这种情况。
https://stackoverflow.com/questions/1547672
复制相似问题