I have the same issue as the thread here. I can manage to make the Status Bar Visible by making the text white but this isn't my goal. I also mean to color on top of the bar, like all navigation bars do. I've been able to achieve this by adding the shapes I want with views, under layoutSubviews, however this way you can't interact or see the UINavigationItem. Code:
- (void)drawRect:(CGRect)rect {
[super drawRect:rect];
CGContextRef context = UIGraphicsGetCurrentContext();
[[UIColor yellowColor] setFill];
UIRectFill(rect);
This is the result:
This is the bast that can be achieved with drawRect:
And this happens if you do it under layoutSubviews:
As you can see, the back text, the arrow, are all lost. So I'm really looking for a way to make drawRect work! Thanks in advance for your help!