UINavigationBar with solid color iOS 5
问题 I'm using the category to customize nav bar. My code is: - (void) drawRect:(CGRect)rect { CGContextRef context = UIGraphicsGetCurrentContext(); CGContextSetFillColor(context, CGColorGetComponents([self.tintColor CGColor])); CGContextFillRect(context, rect); } It works well, but not in iOS 5. I need nav bar color to be solid without any gradient. How should I do this? As I know, for iOS 5 the only way to replace drawRect method is to make a subclass, but is there any way to make all navigation