How to increase height of UIProgressView

Chandan Shetty SP picture Chandan Shetty SP · Aug 9, 2010 · Viewed 69.8k times · Source

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?

Thanks in advance.

Answer

ashayk picture ashayk · Dec 22, 2010

Use CGAffineTransform to change dimensions:

CGAffineTransform transform = CGAffineTransformMakeScale(1.0f, 3.0f);  
progressView.transform = transform;