title: Problem in creating UIPageControl Programmatically?
body: <p>// Init Page Control </p>
  
  <pre><code>UIPageControl *pageControl = [[UIPageControl alloc] init]; 
  pageControl.frame = CGRectMake(110,5,100,100); 
  pageControl.numberOfPages = 2; 
  pageControl.currentPage = 0; 
  [self.view addSubview:pageControl];
  </code></pre>
  
  <p>I'm trying to create <code>UIPageControl</code> programmatically. I created new view based app. In which, i have written this code in ViewControllers <code>viewDidLoad</code>, but its not creating page control. When i see in console viewdidload is called many times.</p>