Customizable UIPageControl Clone

This code is now a part of the BaseAppKit.

I'm working on a project that requires to use UIPageControl. The catch? White background. With UIScrollView you can choose between white and black indicators, with UIPageControl no luck — only white dots.

But it turns out that UIPageControl is not that complicated. I've opened its definition, copied it, added dots color property and implementation. Now I have a drop-in replacement for UIPageControl and free to choose any color for the dots.

ZZPageControl

Sample project with ZZPageControl class is available in SVN repository. If you spot any problems with it please contact me!

  • Digg
  • del.icio.us
  • Reddit
  • StumbleUpon
  • LinkedIn
  • E-mail this story to a friend!
  • Print this article!

  • Dani

    Brilliant ! Thanks for writing up the code that is separate from the UIPageControl implementation. This way, there is no risk once Apple decides to change the implementation of the UIPageControl class.

  • Paul

    This is really great. Thanks for releasing this. Thanks for releasing this. 

  • Julian

    Thanks, clearest example I've found

  • Popperur

    Thanks a lot!

blog comments powered by Disqus