Code Monkey home page Code Monkey logo

zxyprogressview's Introduction

ProgressView

五种自定义的圆形进度

1.扇形进度
ZXYSectorProgress *sectorProgress = [[ZXYSectorProgress alloc] initWithFrame:CGRectMake(10, 50, 150, 150) progress:0];
sectorProgress.fillColor = [UIColor yellowColor];//设置进度颜色
[self.view addSubview:sectorProgress];
2.圆形进度
ZXYBallProgress *ballProgress = [[ZXYBallProgress alloc] initWithFrame:CGRectMake(215, 50, 150, 150) progress:0];
ballProgress.fillColor = [UIColor yellowColor];//设置进度颜色
ballProgress.strokeColor = [UIColor redColor];//设置边框颜色
[self.view addSubview:ballProgress];
3.圆弧进度
ZXYCircleProgress *circleProgress = [[ZXYCircleProgress alloc] initWithFrame:CGRectMake(10, 467, 150, 150) progress:0];
circleProgress.progressWidth = 10;//设置进度宽度
circleProgress.bottomColor = [UIColor redColor];//设置底层圆弧颜色
circleProgress.topColor = [UIColor cyanColor];//设置进度颜色;
[self.view addSubview:circleProgress];
4.波浪进度
ZXYWaveProgress *waveProgress = [[ZXYWaveProgress alloc] initWithFrame:CGRectMake(215, 467, 150, 150) progress:0];
waveProgress.fillColor = [UIColor redColor];//设置进度颜色
waveProgress.strokeColor = [UIColor blackColor];//设置边框颜色
[self.view addSubview:waveProgress];
5.渐变色圆弧进度
ZXYGradientProgress *gradientProgress = [[ZXYGradientProgress alloc] initWithFrame:CGRectMake(0, 0, 150, 150) progress:0];
gradientProgress.center = self.view.center;
gradientProgress.bottomColor = [UIColor purpleColor];//设置底层圆弧颜色
[self.view addSubview:gradientProgress];

简书文章地址

image

zxyprogressview's People

Watchers

James Cloos 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.