title: Coordinates for Center of Screen for iPhone 6S
body: <p>I would like to position an object in the center of my <code>UIViewController</code>. I have tried to use <code>frame.width/2</code> and <code>frame.height/2</code>, for example, with a <code>UIView</code>:</p>
  
  <pre><code>let newView = UIView(frame: CGRect(x: frame.width/2, y: frame.height/2, width: 100, height: 100))
  </code></pre>
  
  <p>That method did not position the object in the center of the view as I expected. How can I position the object to the center of the view using the x-y coordinates of an iPhone 6s?</p>