title: Auto Layout - How to add a subview to match the size of a UIView?
body: <p>I am stuck on a issue I have encountering with Auto Layout. 
   I have a <code>UIView</code> that has constraints set so it is in the same position for every size class. I am trying to get my video to fit perfectly inside of this <code>UIView</code> <code>videoViewBox</code>. I got it working on iPhone 6 only, but if I switch to iPhone 4S/5, the video is no longer aligned. </p>
  
  <p>This is the code:</p>
  
  <pre><code>    var moviePlayer: MPMoviePlayerController!
  
      @IBOutlet var videoViewBox: UIView!
  
      override func viewDidLoad() {
          super.viewDidLoad()
  
          let path = NSBundle.mainBundle().pathForResource("tutorial", ofType: "mov")
          let url = NSURL.fileURLWithPath(path!)
          moviePlayer = MPMoviePlayerController(contentURL: url)
          moviePlayer.view.frame = CGRect(x: 10, y: 50, width: 255, height: 400)
          videoViewBox.addSubview(moviePlayer.view)
  
          moviePlayer.fullscreen = true
          moviePlayer.controlStyle = MPMovieControlStyle.None
      }
  </code></pre>
  
  <p>I tried setting the values of <code>CGRect</code> dynamically with the values from <code>videoViewBox.frame.origin.x</code> and <code>videoViewBox.frame.origin.y</code>, but it wasn't aligned either.</p>
  
  <p>How would I go about doing this? Thanks for helping!</p>