I'm using MFMessageComposeViewController in order to show the SMS send interface.
My app uses full screen, the status bar is hidden by settings in plist file (Status bar is initially hidden = YES).
When I show the message composer with:
+(void)composeSMS:(id)sender
{
if (![MFMessageComposeViewController canSendText]) return;
MFMessageComposeViewController *controller = [[MFMessageComposeViewController alloc] init];
controller.wantsFullScreenLayout = YES;
controller.messageComposeDelegate = sender;
[controller setBody:@"He descubierto un App estupenda! . "];
[controller setModalPresentationStyle:UIModalTransitionStyleFlipHorizontal];
if (controller) [sender presentModalViewController:controller animated:YES];
[controller release];
}
The problem is when the composer is displayed the navigation bar is on the top y = 0, but between this bar and the rest of outlets of the view appears an empty space of the same size as the status bar. The status bar is showed in this screen (second issue) but is overlapping the navigation bar of the composer view.
In other projects where the status bar is not hidden, this works like a charm. But this is the first project where it is used without status bar and this is happening.
Anyone knows how to fix it?
Thanks.