title: UIActivityViewController display email modal view controller over the navigation bar
body: <p>I have an application with navigation bar and a view controller that displays UIActivityViewController when a button is pressed.
  Problem is that when mail is chosen the mail modal view controller covers the navigation bar (image attached - notice the cancel button on the top left).
  Any ideas?</p>
  
  <p>Here is the code for displaying the activity view controller-</p>
  
  <pre><code>UIActivityViewController *activityViewController = [[UIActivityViewController alloc]
                                                          initWithActivityItems:@[message, self.currentImage] applicationActivities:nil];
      [self presentViewController:activityViewController animated:YES completion:^{
          dispatch_async(dispatch_get_main_queue(), ^{
              NSString *flurryEvent = [NSString stringWithFormat:@"Shared chapter %@", self.chapterIndex];
              [Flurry logEvent:flurryEvent];
          });
      }];
  </code></pre>
  
  <p>BTW- same problem with messages but i guess if I solve one the other will be solved too.
  <img src="https://i.stack.imgur.com/oCAAr.png" alt="enter image description here"></p>