I'd like to essentially decrease the height of a UIProgressView to create a "thinner" progress bar. I'm not sure if I'm just using CGAffine incorrectly or I need to use a different approach altogether. Here's my code, prog1, prog2, and prog3 are all progress views already defined:
CGFloat sx1 = 1.0f;
CGFloat sy1 = 1.0f;
CGFloat sx2 = 1.0f;
CGFloat sy2 = 0.5f;
CGFloat sx3 = 1.0f;
CGFloat sy3 = 2.0f;
self.prog1.transform = CGAffineTransformMakeScale(sx1, sy1);
self.prog2.transform = CGAffineTransformMakeScale(sx2, sy2);
self.prog3.transform = CGAffineTransformMakeScale(sx3, sy3);
prog1 displays normally as if nothing was done to it. prog2, instead of showing 1 skinny bar, shows two skinny bars, one on top of the other. prog3, instead of showing 1 fat bar, shows the top half of a fat bar, with the bottom cut off. I tried messing with the frame, but that didn't seem to work too much either.
I noticed that sometimes when testing, it would do this immediately. But sometimes, I would get my desired result. However, after rotating the device, the progress views would always get stuck in the "bad" positions.