title: Erratic UIPageControls
body: <p>I'm using two UIPageControls in a view to reflect chapters and pages. So I have defined one UIPageControl named chapterCount and one named pageCount just to show where the user is. I handle the flipping of the pages with swipes rather than using the UIPageControls (so no methods defined for them).</p>
  
  <p>I change their values as the user change pages with the following code:</p>
  
  <pre><code>chapterCount.numberOfPages = chapters;
  chapterCount.currentPage = chapterNumber;
  
  pageCount.numberOfPages = pages;
  pageCount.currentPage = pageNumber;
  
  [chapterCount updateCurrentPageDisplay];
  [pageCount updateCurrentPageDisplay];
  </code></pre>
  
  <p>Where chapters, chapterNumber, pages and pageNumber all are integers.</p>
  
  <p>The first time I flip through the pages it normally works fine, but when I go to a previous chapter or start a new chapter, the first (or last depending on direction) dot is not showed. Please see picture (upper half is missing a dot, lower one OK). </p>
  
  <p><a href="http://img80.imageshack.us/img80/3339/pagecontrol.png" rel="nofollow noreferrer">alt text http://img80.imageshack.us/img80/3339/pagecontrol.png</a></p>
  
  <p>Its the same code updating the controls and sometime I get a dot, sometimes not. When I check the variables with NSLOG they are correct (eg the same for both pictures above).</p>
  
  <p>I have checked Apple's documentation and tried their example but no luck.</p>
  
  <p>Where should I start troubleshooting? I'm getting crazy!!</p>