UIProgressView进度条
来源:互联网 发布:js接口安全域名 备案 编辑:程序博客网 时间:2024/05/22 04:30
- (void)viewDidLoad
{
[superviewDidLoad];
UIProgressView*oneProgressView = [[UIProgressViewalloc]init];
oneProgressView.frame=CGRectMake(0,30,320,30);//设置UIProgressView的位置和大小
oneProgressView.transform =CGAffineTransformMakeScale(50.0f,20.0f);//改变进度条的高度
oneProgressView.backgroundColor= [UIColorclearColor];//设置背景色
oneProgressView.progressViewStyle =UIProgressViewStyleDefault;//进度条风格就两种
oneProgressView.alpha=1.0;//设置透明度范围在0.0-1.0之间0.0为全透明
oneProgressView.progressTintColor= [UIColoryellowColor];//设置已过进度部分的颜色
oneProgressView.trackTintColor= [UIColorblackColor];//设置未过进度部分的颜色
[oneProgressView setProgress:0.5animated:YES];//设置初始值,可以看到动画效果
oneProgressView.progressImage = [UIImageimageNamed:@"hsp_07"];
oneProgressView.trackImage = [UIImageimageNamed:@"hsp_08"];
[self.viewaddSubview:oneProgressView];//添加到视图上
}
- UIProgressView进度条
- UIProgressView 进度条
- UIProgressView/进度条
- UIProgressView 进度条
- 进度条 UIProgressView
- UIProgressView进度条
- UIProgressView进度条
- UIProgressView 进度条(实用)
- 【UIProgressView进度条控件】
- UIProgressView进度条方法总结
- iOS 进度条 UIProgressView
- UIProgressView(进度条)
- Swift 进度条 UIProgressView
- UIProgressView 进度条 (OC)
- 进度条UIProgressView和计步器结合
- 进度条 UIProgressView 设置背景色及高度
- 进度条 UIProgressView 设置背景色及高度
- Snail—UI学习之进度条UIProgressView
- POJ 2761Feed the dogs 划分树
- hdu3436 Queue-jumpers(Splay)
- 1002
- webuploader在同一个页面支持多个按钮实例,类似京东那样的评论
- 施密特触发器电路及工作原理
- UIProgressView进度条
- 磁盘 I/O 性能监控指标和调优方法
- git提交A时导致Submitted, Merge Pending, A依赖B(B状态为ABANDONED )
- 【数据结构】 串 YTU 2248: 2280: 找字符个数(串)
- JSP中的EL表达式(1)
- python py2exe打包matplotlib Could not find the matplotlib data files问题解决
- 架构漫谈(五):什么是软件
- PAT乙级—1028. 人口普查(20)-native
- ios 9.0获取用户位置