title: Front facing camera in UIImagePickerController
body: <p>I am developing the front facing camera app in iPad2 by using the <code>UIImagePickerController</code>.</p>
  
  <p>When I capture the image it's shows as flipped from left to right.</p>
  
  <p>How do I correct this?</p>
  
  <pre><code>if ([UIImagePickerController isSourceTypeAvailable:UIImagePickerControllerSourceTypeCamera]) 
      {
          UIImagePickerController *imgPkr = [[UIImagePickerController alloc] init];
          imgPkr.delegate = self;
          imgPkr.sourceType = UIImagePickerControllerSourceTypeCamera;
          imgPkr.cameraDevice=UIImagePickerControllerCameraDeviceFront;
  
  
          UIImageView *anImageView=[[UIImageView alloc] initWithImage:[UIImage imageNamed:[NSString stringWithFormat:@"select%d.png",val]]];
          anImageView.frame = CGRectMake(0, 0, anImageView.image.size.width, anImageView.image.size.height);
          imgPkr.cameraOverlayView = anImageView;
          [theApp.TabViewControllerObject presentModalViewController:imgPkr animated:YES];
          [imgPkr release];
      }
  </code></pre>