title: Objective c - UIActivityViewController orientation mode
body: <p>My iPhone app is design to support portrait orientation only, except one view controller that present photos, and support landscape mode as well.  </p>
  
  <p>So overall my project support all the orientations, but every view controller (except the photo view controller) implement the method:  </p>
  
  <pre><code>- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
      return (interfaceOrientation == UIInterfaceOrientationPortrait);
  }  
  </code></pre>
  
  <p><strong>The problem:</strong>  </p>
  
  <p>In one of my (only portrait) view controller, I'm using <code>UIActivityViewController</code> to let the user choose sharing content through email or SMS.  </p>
  
  <p>When the user pick the email option, it automatically shows the ios native email view controller.  </p>
  
  <p>If the user now change the device's orientation to landscape, the email view controller also changes to landscape, now if the user tap the cancel/send button, the email controller get dismissed, and now my all app is in landscape!  </p>
  
  <p>Is there a way to force the eamil view controller to be in portrait mode only?  </p>
  
  <p>I know I can create my own email view controller and subclass <code>UIActivity</code> to show it, but than the <code>UIActivityViewController</code> won't show the default email icon when presented, and I really like it to show it and not some other (must be grey) icon that I'll provide.</p>