title: How to create a custom UIImagePickerController with full-screen images ios
body: <p>I have a simple UIImagePickerController which will use the camera to take a picture, but there are a couple things I would like it to do:</p>
  
  <ul>
  <li>Have a custom camera UI</li>
  <li>Take a full-screen instead of 480x640 (if on 4inch phone)</li>
  </ul>
  
  <p>Here is my code for showing the UIImagePickerController:</p>
  
  <pre><code>- (IBAction)pick:(id)sender {
      NSLog(@"abc");
      picker = [[UIImagePickerController alloc] init];
      if ([UIImagePickerController isSourceTypeAvailable:UIImagePickerControllerSourceTypeCamera]) {
          [picker setSourceType:UIImagePickerControllerSourceTypeCamera];
      } else {
          [picker setSourceType:UIImagePickerControllerSourceTypePhotoLibrary];
      }
      [picker setDelegate:self];
      [self presentViewController:picker animated:YES completion:nil];
  
  }
  </code></pre>
  
  <p>and here is for when the image gets taken:</p>
  
  <pre><code>- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info {
      [self dismissViewControllerAnimated:YES completion:nil];
      UIImage *image = [info objectForKey:UIImagePickerControllerOriginalImage];
      [imageView setImage:image];
  }
  </code></pre>
  
  <p>How do I do this?</p>
  
  <p>Thanks</p>