title: ipad - Center subview when device rotate
body: <p>I have master-detail aplication in xcode for iPad and I have there one subview, which is on center of screen by this code:</p>
  
  <pre><code>box.view.center = CGPointMake(self.view.bounds.size.width / 2, self.view.bounds.size.height / 2);
  </code></pre>
  
  <p>but when I rotate device, subview doesn't comes to center again. How to "auto-center" subview when rotate, please?</p>
  
  <p><img src="https://i.stack.imgur.com/IruH4.jpg" alt="This is that problem..."></p>