0

I have to implement a progressbar with custom height which changed dinamycally. The minimum target for the project is iOS7.

I tried use this code :

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

but when user rotates the device the progressbar doesn't keep its height.

I tried to fix this problem by putting the code in viewWillLayoutSubviews method but without result.

Also, I tried this solution : How to increase height of UIProgressView

I don't use Autolayout in my project.

Any advice to fix this problem ? Thanks in advance !

Community
  • 1
  • 1
Tyrone Prude
  • 362
  • 7
  • 19

0 Answers0