I'm using a progress view (UIProgressView) as the titleView
in a navigation item, so that it appears in my navigation bar. No matter what I do, it appears very narrow in iOS 7.1:
I hate this version of the progress view. How can make it fatter / thicker / taller? I've tried everything suggested here and here. I've tried changing the frame, adding a transform, using a custom subclass, adding constraints (these just cause a crash). And the trick I used to use, adding a progressImage
and trackImage
, is broken in iOS 7.1!
Here's my code (the whole thing is happening in code; I have no nibs or storyboards in this project):
UIProgressView* prog = [[UIProgressView alloc] init];
self.prog = prog;
self.prog.progressTintColor = [UIColor colorWithRed:1.000 green:0.869 blue:0.275 alpha:1.000];
self.prog.trackTintColor = [UIColor darkGrayColor];
self.navigationItem.titleView = prog;