主要是用到了一个自定义的UIProgressView,使用起来还是挺简单的。
#pragma mark - #pragma mark YLViewController Public Methods - (void)changeProgressValue { float progressValue = progressView.progress; progressValue += 0.01f; if (progressValue > 1) progressValue = 0; [progressValueLabel setText:[NSString stringWithFormat:@"%.0f%%", (progressValue * 100)]]; [progressView setProgress:progressValue]; } - (IBAction)colorButtonTapped:(id)sender { UISegmentedControl *seg = (UISegmentedControl*)sender; switch (seg.selectedSegmentIndex) { case 0: progressView.progressTintColor = [UIColor purpleColor]; break; case 1: progressView.progressTintColor = [UIColor redColor]; break; case 2: progressView.progressTintColor = [UIColor cyanColor]; break; case 3: progressView.progressTintColor = [UIColor greenColor]; break; case 4: progressView.progressTintColor = [UIColor yellowColor]; break; default: break; } }
你可以从GitHub上下载到最新源码:https://github.com/YannickL/YLProgressBar
相关推荐
作者yannickl,源码YLProgressBar,Core Graphics 实现的轻量级高度自定义带有动画效果的进度条 YLProgressBar。使用 Core Graphics framework 实现,没有用到任何图片。所以可以高度自定义和平台扩展。
php进度条php进度条php进度条php进度条php进度条php进度条php进度条php进度条php进度条php进度条php进度条php进度条php进度条
渐变进度条 美化进度条 是进度条更美观 看起来更舒服
进度条0.bat进度条0.bat进度条0.bat进度条0.bat进度条0.bat进度条0.bat进度条0.bat进度条0.bat进度条0.bat进度条0.bat进度条0.bat进度条0.bat进度条0.bat
Java实现进度条 Java实现进度条 Java实现进度条 Java实现进度条 Java实现进度条
页面加载前弹出进度条,这里显示的进度条进度是不标准的,因为某些功能任务没有办法预估精准的处理进度,只是显示大概范围的进度条值。 b、精确数值进度条。点击button弹出进度条,点击button后会查询数据,通过...
Android跑马进度条,普通进度条,自定义进度条
彩色进度条,图片进度条,渐变进度条,是进度条更美观
BS进度条BS进度条BS进度条BS进度条BS进度条BS进度条BS进度条BS进度条BS进度条BS进度条BS进度条
DataGridView进度条 DataGridView进度条 DataGridView进度条 DataGridView进度条 DataGridView进度条
win8 小点进度条,自定义圆形进度条,wpf Progressbar进度条样式更改
用两个方法实现进度条,切换,最小化恢复窗口,进度条正常,不假死!请用Microsoft Visual Studio 2008打开,或先执行EXE看看是否是自己需要的! 注: 下载资源时,看清楚此文档说明,我不是为了积分而放在这里,我...
圆形进度条 index.html圆形进度条 index.html圆形进度条 index.html圆形进度条 index.html圆形进度条 index.html圆形进度条 index.html圆形进度条 index.html圆形进度条 index.html圆形进度条 index.html
html版进度条进度条,用于上传文件进度读取
6种造型的进度条,AssetStore绝版付费下载,满足现有的进度条需求。
jsp页面进度条
UGUI实现的圆形进度条 可用于进度条显示 也可用于拖拽验证码的功能
自定义多彩进度条
进度条进程显示 进度条进程显示 进度条进程显示.rar进度条进程显示.rar进度条进程显示.rar进度条进程显示.rar进度条进程显示.rar进度条进程显示.rar