title: Add PageControl programmatically
body: <p>I would like to add a UIPageControl item programmatically to my view Controller. The self.view property contains a UIScrollView with the following properties:</p>
  
  <pre><code>scrollView = [[UIScrollView alloc] initWithFrame:applicationFrame];
  scrollView.backgroundColor = [UIColor blackColor];
  scrollView.maximumZoomScale = 1.0;
  scrollView.minimumZoomScale = 1.0;
  scrollView.clipsToBounds = YES;
  scrollView.showsHorizontalScrollIndicator = NO;
  scrollView.pagingEnabled = YES;
  self.view = scrollView;
  </code></pre>
  
  <p>So far so good. Now I wanted to add a PageControl element by adding this (a few lines later):</p>
  
  <pre><code>pageControl.numberOfPages = 2;
  pageControl.currentPage = 0;
  </code></pre>
  
  <p>The pageControl element is synthesized using the @property and @synthesize. However, this does not display anything, even if I add a [self.view addSubview:pageControl];</p>
  
  <p>Any ideas why this is not working?</p>