views:

416

answers:

1

Hello,

i am implemented MFMailComposeViewController in ipad application. It works great in Portrait mode. When i rotate it to Landscape mode its not completely fill the page. Is it possible to show the mail composer without any space.

+1  A: 

Yes i find the answer as just by include the line

picker.modalPresentationStyle = UIModalPresentationFullScreen;

in -(void)displayComposerSheet method.

venkat
If you found this answer helpful, please press the ✔ next to it.
Emil
@venkat, My code -(void)displayComposerSheet method worked good in iPhone but not in iPad.-(void)displayComposerSheet{ [[CCDirector sharedDirector] pause]; picker = [[MFMailComposeViewController alloc] init]; picker.mailComposeDelegate = self; NSArray *toRecipients = [NSArray arrayWithObject:@"[email protected]"]; [picker setToRecipients:toRecipients]; [[[CCDirector sharedDirector] openGLView] addSubview:picker.view]; [[CCDirector sharedDirector] stopAnimation]; [picker presentModalViewController:picker animated:YES]; [picker release];}
srikanth rongali
In code it is stopping at [picker presentModalViewController:picker animated:YES];Thank You.
srikanth rongali