1,创建进度条
1
2
3
4
|
var
progressView=
UIProgressView
(progressViewStyle:
UIProgressViewStyle
.
Default
)
progressView.center=
self
.view.center
progressView.progress=0.5
//默认进度50%
.view.addSubview(progressView);
|
progressView.setProgress(0.8,animated:
true
)
|
@H_404_61@
progressView.progressTintColor=
UIColor
.greenColor()
//已有进度颜色
progressView.trackTintColor=
.blueColor()
//剩余进度颜色(即进度槽颜色)
|
@H_404_61@