I am subclassing the UINavigationBar
so that I can override the drawRect
method. However, when I do so in iOS 7, the status bar becomes completely black. No text at all. In iOS 6 it doesn't have that problem; the status bar is where it should be.
- (void)drawRect:(CGRect)rect // status bar goes pitch black
{
[super drawRect:rect];
}
If I comment out this method, the status bar returns. How can I get the status bar back?
UPDATE Apr 15, 2014
I tried to set the status bar to something else using the code that I found here but it does not seem to have any effect.