Fully customizable alternative to UIPageControl
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
MCColoredPageControl
.gitignore
LICENSE.md
MCColoredPageControl.podspec
README.md

README.md

MCColoredPageControl - Fully customizable alternative to UIPageControl

Badge w/ Version Badge w/ Platform

#import "MCColoredPageControl.h"

- (void)funWithColoredPageControl
{
  MCColoredPageControl* pageControl = [[MCColoredPageControl alloc] initWithFrame:CGRectZero];
  [pageControl setNumberOfPages:10];
  [pageControl setCurrentPage:1];

  // You can change the color of the dots
  [pageControl setCurrentPageDotColor:[UIColor redColor]];
  [pageControl setOtherPageDotColor:[UIColor grayColor]];

  // Don't like rounds? Use squares
  [pageControl setDotType:ColoredPageControlDotTypeSquare];

  // Change size of the dots.
  [pageControl setDotWidth:12.0];

  // Change the spacing between each one.
  [pageControl setDotSpacing:5.0];

  // Add a shadow
  [pageControl setDotShadowOffset:1.0];
  [pageControl setDotShadowAlpha:0.8];
  [pageControl setDotShadowRadius;1.0];
  [pageControl setDotShadowColor:[UIColor blackColor]];

  // Use it as a progress bar indicator.
  // All dots before the current dot use the current dot color.
  [pageControl setShowProgress:YES];
}

Adding to your project

If you're using CocoaPods, there's nothing simpler. Add the following to your Podfile and run pod install

pod 'MCColoredPageControl', :git => 'https://github.com/mirego/MCColoredPageControl.git'

Don't forget to #import "MCColoredPageControl.h" where it's needed.

License

MCColoredPageControl is © 2013-2015 Mirego and may be freely distributed under the New BSD license. See the LICENSE.md file.

About Mirego

Mirego is a team of passionate people who believe that work is a place where you can innovate and have fun. We're a team of talented people who imagine and build beautiful Web and mobile applications. We come together to share ideas and change the world.

We also love open-source software and we try to give back to the community as much as we can.