Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to increase height of UIProgressView

I am creating UIProgressView from nib. I want to increase its height but it is fixed to 9. For iPad I need to increase its height. How it can be done?

like image 647
Chandan Shetty SP Avatar asked Aug 09 '10 05:08

Chandan Shetty SP


People also ask

How to increase progress bar height in Swift?

Use a height constraint to increase the size of the progress bar. Then you can use . cornerRadius and . clipsToBounds to round the corners as expected.


1 Answers

Use CGAffineTransform to change dimensions:

CGAffineTransform transform = CGAffineTransformMakeScale(1.0f, 3.0f);   progressView.transform = transform; 
like image 95
ashayk Avatar answered Sep 24 '22 23:09

ashayk