Giter Site home page Giter Site logo

lineshine / lcanimatedpagecontrol Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bawn/lcanimatedpagecontrol

0.0 2.0 0.0 1.48 MB

Custom UIPageControl with a simple animation

Home Page: http://bawn.github.io/ios/uipagecontrol/2015/06/16/LCAnimatedPageControl.html

License: MIT License

Objective-C 98.94% Ruby 1.06%

lcanimatedpagecontrol's Introduction

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

lcanimatedpagecontrol's People

Contributors

bawn avatar readmecritic avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.