I use the custom drawRect function to draw on the UINavigationBar in my application in iOS4, it does not use images, but only CoreGraphics.
Since you cannot implement drawRect in the UINavigationBar category on iOS5, Apple offers a subclass of UINavigationBar .
How can I replace a UINavigationBar my subclass with a UINavigationController (so it will be compatible with iOS4 and iOS5) if the navigationBar property is read-only?
@property(nonatomic, readonly) UINavigationBar *navigationBar
I do not use XIB at all in my application, so adding a UINavigationBar to the NIB and changing the class via InterfaceBuilder is not an option.
ios iphone cocoa-touch uinavigationcontroller uinavigationbar
romaonthego Jul 12 '11 at 22:57 2011-07-12 22:57
source share