3

the apps launched the mailcomposer modal view (MFMailComposeViewController) when the Contact Us button is pressed. but once the modal view is loaded, the status bar is hidden automatically.

I setStatusBarHidden Status to NO after modal view controller is dismissed.

[self dismissModalViewControllerAnimated:YES];
[[UIApplication sharedApplication] setStatusBarHidden:NO];

but the status bar and navigation bar is overlapped after ModalViewController is dismissed.

I got no clue how to fix it. Appreciate any kind help. Thanks.

Abizern
  • 146,289
  • 39
  • 203
  • 257
moon
  • 1,392
  • 3
  • 15
  • 29

1 Answers1

2

my problem is solved by launching the MFMailComposeViewController from appDelegate tabBarController

 myAppDelegate *mDelegate = (myAppDelegate *)[[UIApplication sharedApplication] delegate];
[mDelegate.tabBarController presentModalViewController:picker animated:YES];

instead of launching from the navigation Controller

[self presentModalViewController:picker animated:YES];
moon
  • 1,392
  • 3
  • 15
  • 29