title: UIPageControl select dot and go to that page
body: <p>I have a<code>UIViewController</code>, which has inside a <code>UIView</code> in which I add a <code>UIPageViewController</code> with the <code>UIViewController</code> as the delegate. The thing is that the <code>UIPageControl</code> of the <code>UIPageViewController</code> is not working as I had expected regarding the dots selection. </p>
  
  <p>I was expecting that if I selected the dot 4, it would take me to the dot 4, yet, It doesn't work like that. It always goes to the following page if I select the right half of the <code>UIPageControl</code> (inside the blue square of the image), and goes to the previous page if I select the left half of the <code>UIPageControl</code> (inside the red square of the image). So, If im in page 2 and select around the second dot, it goes to page 1 (instead of staying on page 2) </p>
  
  <p><a href="https://i.stack.imgur.com/xQFEj.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xQFEj.png" alt="enter image description here"></a></p>
  
  <p>Moreover, If I click exactly inside one of the dots (any of the dots), the click is ignored, although im not sure how this works on device (since in the device is more difficult to click exactly inside one dot).</p>
  
  <p>My questions:</p>
  
  <p>1 - Is ignoring exactly inside the dots behavior normal (by exactly inside the dots, I mean not around them)?</p>
  
  <p>2 - Is two halves selection of the UIPageController to move between pages behavior normal?</p>
  
  <p>3 - How can I make it so that if I press the dot X, it takes me to page X (instead of the current two halves behavior)?</p>
  
  <p>Note: I prefer swift </p>