I have a Navigation View with a tab bar delegate so basically it has tab bars and a navigation bar. I'm trying to implement a "Refer a Friend" button where the user will click the button and a mail view will pop up. I'm using the MFMailComposeViewController but my navigation bar is covering the navigation bar for the mail composer so I can't click on the "Cancel" and "Send" button. I tried both self.navigationController.navigationBarHidden = YES and [[self navigationController] setNavigationBarHidden:YES animated:NO] but the navigation bar just won't go away. Anyone have suggestions for this? Do I need to send the mail controller view to the front to hide the navigation bar for my view controller?
Code:
self.navigationController.navigationBarHidden = YES;
MFMailComposeViewController *controller = [[MFMailComposeViewController alloc] init];
[controller setToRecipients:recipient];
[controller setSubject:subject];
[controller setMessageBody:message isHTML:NO];
controller.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;
[self presentModalViewController:controller animated:YES];
[controller release];