I have a category on UINavigationBar, the drawRect function of which draws a custom logo in the nav bar. There is one view controller in my app which i would not like to draw the custom logo for.
Is there a way to bypass the category’s drawRect function?
Nope; you can’t. Or, you can (through swizzling), but you shouldn’t. Namely, you are modifying system behavior, which is a good way to either cause crashes in the future or potentially have your app rejected.
Typically, if you want to customize a class’s behavior, you do so by subclassing and using instances of the subclass.