title: UIImagePickerController with cameraOverlayView on iPad iOS 6 has no "Take Photo" button
body: <p>The following code creates a popover controller with a <code>UIImagePickerController</code> that uses cameraOverlayView to show a custom button that opens photo library.</p>
  
  <p>This works great on iOS 5, but on iOS 6 the "Take Photo" button is missing, instead - there's another switch between front and back camera button!</p>
  
  <p>See the following screenshot -</p>
  
  <p><img src="https://i.stack.imgur.com/dtEfN.png" alt="missing take photo button"></p>
  
  <p>This is the code -
      UIImagePickerControllerSourceType sourceType = UIImagePickerControllerSourceTypeCamera;</p>
  
  <pre><code>if ( ![UIImagePickerController isSourceTypeAvailable: sourceType] ) {
      [self openLibrary: sender];
      return;
  }
  
  UIImagePickerController *picker = [[UIImagePickerController alloc] init];
  picker.delegate = self;
  picker.sourceType = sourceType;
  
  UIButton *libraryButton = [UIButton buttonWithType: UIButtonTypeCustom];
  libraryButton.frame = CGRectMake(12, 12, self.photoLibraryIcon.size.width, self.photoLibraryIcon.size.height);
  [libraryButton setImage: self.photoLibraryIcon forState: UIControlStateNormal];
  [libraryButton addTarget: self action: @selector(openLibrary:) forControlEvents: UIControlEventTouchUpInside];
  
  [picker.cameraOverlayView addSubview:libraryButton];
  
  __imagePickerPopoverController = [[UIPopoverController alloc] initWithContentViewController: picker];
  self.imagePickerPopoverController.delegate = self;
  
  [self.imagePickerPopoverController presentPopoverFromRect: CGRectMake(self.center.x - 5, self.center.y - 5, 10, 10)
                                                     inView: self.superview
                                   permittedArrowDirections: UIPopoverArrowDirectionAny
                                                   animated: YES];
  </code></pre>
  
  <p>If I remove the <code>[picker.cameraOverlayView addSubview:libraryButton]</code>, it works fine, but then my custom button will be gone (as expected).</p>
  
  <p>So why assigning a <code>cameraOverlayView</code> changes the bottom toolbar?</p>
  
  <p>Any clue on how to get the "Take Photo" button back to iOS 6?</p>