title: Full Screen Camera
body: <p>I am having trouble with AVCapture.</p>
  
  <p>Backstory: I made a new storyboard for my app for the iPad my copying the iPhone Storyboard and changing the source code of the new storyboard by adding .iPad where it was needed. Currently, my app only uses portrait mode.</p>
  
  <p>AVCapture however, (which I am using to show a live feed of the camera) only fills part of the screen, with black bars on the outside. I also noticed it does this on the 3.5" screen iPhones.</p>
  
  <p>I will add code as requested.</p>
  
  <p>Please make all instructions super easy to follow, this is my first app, and I am a newbie.</p>
  
  <p>Thanks!!
  Branch</p>
  
  <p>EDIT: I tried this code from Apple's documentation, but it didn't work: </p>
  
  <p><code>AVCaptureSession *captureSession;
      AVCaptureVideoPreviewLayer *previewLayer = [AVCaptureVideoPreviewLayer layerWithSession:captureSession];
      UIView *aView;
      previewLayer.frame = aView.bounds;
      [aView.layer addSublayer:previewLayer];</code></p>