title: Force landscape orientation in UIImagePickerController
body: <p>I'm new to iOS development, and Im developing my first app. (so sorry if Im asking a newbie question)</p>
  
  <p>My app is all in portrait orientation, except to the place where I'm using <strong>UIImagePickerController</strong> to take a picture to be used in the app, what I'm doing is:</p>
  
  <pre><code>UIImagePickerController *picker = [[UIImagePickerController alloc] init];
  picker.delegate = self;
  picker.sourceType = UIImagePickerControllerSourceTypeCamera;
  picker.mediaTypes = [NSArray arrayWithObject:(NSString *)kUTTypeImage];
  picker.allowsEditing = NO;
  [self presentModalViewController:picker animated:YES];
  </code></pre>
  
  <p>As my app is in <strong>Portrait</strong>, I need to make something to the <strong>UIImagePickerController</strong> be in <strong>landscape only</strong>. if I try to use:</p>
  
  <pre><code>[[UIDevice currentDevice] setOrientation:UIInterfaceOrientationLandscapeRight];
  </code></pre>
  
  <p>It seems that I can't use, because my Xcode identify as a error in this lines (probably because of Xcode the version, I'm not sure). And I'm not sure, but it seems that if I'm developing for <strong>iOS 5.1</strong> I will need to implement something <strong>for iOS 6.0 too</strong>, is it correct?</p>
  
  <p>Can someone help me to understand what is need to make this <strong>UIImagePickerController</strong>, and only this view controller in the app, work in Landscape orientation and works in iOS 5.1 and 6?</p>
  
  <p>Regards</p>