Search code examples
ioscocoa-touchios8mfmessagecomposeviewcontroller

MFMessageComposeViewController bar transparent


I'm trying to present a MFMessageComposeViewController modally.

MFMessageComposeViewController *controller =[[MFMessageComposeViewController alloc] init];

if([MFMessageComposeViewController canSendText])
{
    controller.body = @"Welcome to my app!";
    controller.recipients = [NSArray arrayWithObjects:@"99999999", nil];
    controller.messageComposeDelegate = self;

    [self presentViewController:controller
                       animated:TRUE
                     completion:nil];
}

The navigation bar of the MFMessageComposeViewController appears transparent.

The controller is appearing like this:

MFMessageComposeViewController

Any ideas how to fix this?

Thanks, Daniel


Solution

  • You've made changes to the navigation bar using the appearance proxy. Either revert those changes, or override them directly on MFMessageComposeViewController's navigation bar.