imzyf / ios-swift-learning-notes

📝 iOS Swift Learning Notes - see Issues
MIT License
0 stars 0 forks source link

UIProgressView 高度 #19

Open imzyf opened 7 years ago

imzyf commented 7 years ago

http://www.hangge.com/blog/cache/detail_1165.html

//通过变形改变进度条高度( 横向宽度不变,纵向高度变成默认的5倍)
myProgressView.transform = CGAffineTransformMakeScale(1.0, 5.0)

//进度条条进度
myProgressView.progress = 0.3
imzyf commented 7 years ago

圆角

https://stackoverflow.com/questions/40925453/making-uiprogressview-rounded-corners

progressView.clipsToBounds = true
imzyf commented 6 years ago

xib 中直接设置高的约束就 ok