资讯

精准传达 • 有效沟通

从品牌网站建设到网络营销策划,从策略到执行的一站式服务

IOSUIProgressView控件的使用

UIProgressView进度条的基本使用

UIProgressView *progressView=[[UIProgressView alloc]initWithProgressViewStyle:UIProgressViewStyleDefault];
//修改UIProgressView控件的大小
CGAffineTransform transform = CGAffineTransformMakeScale(1.0f, 3.0f);
 progressView = transform;
 //设置layer的颜色和边框
 progressView.layer.cornerRadius = 3.0f;
 progressView.layer.borderColor = [UIColor colorWithString:@"#64b3a0"].CGColor;
 progressView.layer.borderWidth = 0.5f;
 progressView.layer.masksToBounds = YES;
 
//进度条的颜色
progressView.trackTintColor = [UIColor whiteColor];
progressView.progressTintColor=[UIColor colorWithString:@"#64b3a0"]
progressView.progress=0.9;(0.0-1.0);之间
 [self.contentView addSubview:progressView];

网站栏目:IOSUIProgressView控件的使用
文章网址:http://cdkjz.cn/article/jhiips.html
多年建站经验

多一份参考,总有益处

联系快上网,免费获得专属《策划方案》及报价

咨询相关问题或预约面谈,可以通过以下方式与我们联系

大客户专线   成都:13518219792   座机:028-86922220