title: Center UIPageControl after orientation change
body: <p>I'm trying to centralize a <code>UIPageControl</code> in portrait and landscape modes, but it isn't working, the x changes after device rotation.</p>
  
  <pre><code>@interface DetailViewController : UIViewController&lt;UIScrollViewDelegate&gt;
  {
      UIPageControl *pageControl;
  }
  
  - (void)viewDidLoad
  {
      pageControl = [[UIPageControl alloc] init] ;  
      [self renderMyView];
      [self.view addSubview:pageControl];
  }
  
  - (void)renderMyView
  {
     if(isPortrait)
     {
          pageControl.frame = CGRectMake(200, 976, 0, 0);
     } else {
          pageControl.frame = CGRectMake(200, 720, 0, 0);
     }
  }
  </code></pre>
  
  <p>The <code>renderMyView</code> is executed on <code>didLoad</code> and <code>didRotate</code>. </p>
  
  <p>At first time <code>viewDidLoad</code> works well in portrait and landscape, but if I rotate the device the <code>pageControl</code> appears in a different x <code>!= 200</code>.</p>
  
  <p>I've also tried <code>pageControl.center</code>, but it didn't work.</p>
  
  <p>How can I keep it centralized?</p>