Latest 1.0.0
Homepage https://github.com/bawn/LCAnimatedPageControl
License MIT
Platforms ios 7.0, requires ARC
Dependencies UIImage+BlurredFrame
Frameworks Foundation, UIKit
Authors

LCAnimatedPageControl

License MIT
Pod version
Platform info
Support

logo

Custom UIPageControl with a simple animation.

Demo

  LCSquirmPageStyle             LCScaleColorPageStyle


  LCSquirmPageStyle             LCFillColorPageStyle


Installation

CocoaPods:

pod 'LCAnimatedPageControl'

Example Usage

#import <LCAnimatedPageControl.h>
self.pageControl = [[LCAnimatedPageControl alloc] initWithFrame:CGRectMake(0, self.view.frame.size.height - 40, 280, 20)];
self.pageControl.center = CGPointMake(self.view.frame.size.width * 0.5f, _pageControl.center.y);
self.pageControl.pageStyle = LCScalePageStyle;
self.pageControl.numberOfPages = 5;
self.pageControl.indicatorMargin = 5.0f;
self.pageControl.indicatorMultiple = 1.6f;
self.pageControl.pageIndicatorColor = [UIColor redColor];
self.pageControl.currentPageIndicatorColor = [UIColor blackColor];
self.pageControl.sourceScrollView = _collectionView;
[self.pageControl prepareShow];
[self.view addSubview:_pageControl];

Use the ScalePageStyle, If you want to scrollView to scroll to the non-adjacent location, Please realize the following protocol methods

- (void)scrollViewDidEndScrollingAnimation:(UIScrollView *)scrollView;{
    [self.pageControl clearIndicators];
}

Requirements

  • iOS 6 or higher
  • ARC

More Info

Blog

License

MIT

Latest podspec

{
    "name": "LCShareView",
    "version": "1.0.0",
    "summary": "Custom UIPageControl",
    "homepage": "https://github.com/bawn/LCAnimatedPageControl",
    "license": "MIT",
    "authors": {
        "bawn": "[email protected]"
    },
    "source": {
        "git": "https://github.com/bawn/LCShareView.git",
        "tag": "1.0.0"
    },
    "platforms": {
        "ios": "7.0"
    },
    "requires_arc": true,
    "frameworks": [
        "Foundation",
        "UIKit"
    ],
    "source_files": "LCShareView/LCShareView.{h,m}",
    "dependencies": {
        "UIImage+BlurredFrame": [
            "~> 0.0.4"
        ]
    }
}

Pin It on Pinterest

Share This