title: How to place a PageControl in ScrollView having multiple images?
body: <p>I have a scroll view which contain a view and view have five images in want a pagecontrol to show the navigation status but the page control hides behind the images. I tried everything searched internet but cant fined anything.</p>
  
  <p>Implementation.h</p>
  
  <pre><code>@interface ScrollSecondViewController : UIViewController
  {
     IBOutlet UIView *scrContentSizeView;
     IBOutlet UIScrollView * scrollView;
  
  }
  @property (nonatomic, weak) IBOutlet UIPageControl *pageControl;
  @end
  </code></pre>
  
  <p>Implementation.m</p>
  
  <pre><code>- (void)viewDidLoad {
  [super viewDidLoad];
  [self.navigationItem setTitle:@"Scroll View"];
  scrollView.contentSize = CGSizeMake(scrContentSizeView.frame.size.width, scrollView.frame.size.height);  
  scrollView.clipsToBounds = YES;
  
       [scrollView setContentOffset:CGPointMake(750, 0) animated:YES];
  
  // Do any additional setup after loading the view.
  </code></pre>
  
  <p>}</p>
  
  <pre><code>- (void) scrollViewDidEndDecelerating:(UIScrollView *)scrollView
  {
      _pageControl.currentPage = scrollView.contentOffset.x /       scrollView.frame.size.width;
  }
  </code></pre>