Giter VIP home page Giter VIP logo

ellipsepagecontrol's Introduction

椭圆 长方形的 PageControl 自定义

@property(nonatomic) NSInteger numberOfPages;          //  多少分页点

@property(nonatomic) NSInteger currentPage;            //  当前点位置

@property(nonatomic) NSInteger controlSize;            //  点大小

@property(nonatomic) NSInteger controlSpacing;         //  点的间距 

@property(nonatomic,strong) UIColor *otherColor;       //  其他点颜色

@property(nonatomic,strong) UIColor *currentColor;     //  当前点颜色

@property(nonatomic,strong) UIImage *currentBkImg;     //  当前点背景颜色

使用例子:

支持pod导入

pod 'EllipsePageControl','~> 0.0.4'

头文件引入

#import "EllipsePageControl.h"

定义

@property(nonatomic,strong) EllipsePageControl *myPageControl1;

使用

_myPageControl1 = [[EllipsePageControl alloc] init];

_myPageControl1.frame=CGRectMake(0, 80,[UIScreen mainScreen].bounds.size.width, 30);

_myPageControl1.numberOfPages = 6;

_myPageControl1.delegate=self;

[self.view addSubview:_myPageControl1];




### #pragma  mark EllipsePageControlDelegate。监听用户点击

-(void)ellipsePageControlClick:(EllipsePageControl *)pageControl index:(NSInteger)clickIndex{

}

 看效果图  demo 详细使用

show

ellipsepagecontrol's People

Contributors

hackxhj 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.