Best point to overwrite the navigationBar property of navigationController

Posted by flohei on Stack Overflow See other posts from Stack Overflow or by flohei
Published on 2010-05-30T21:01:05Z Indexed on 2010/05/30 21:02 UTC
Read the original article Hit count: 297

Hi there,

I'm overwriting UINavigationController to replace the default navigationBar property with an instance of my own subclass of UINavigationBar. So I tried something like

_navigationBar = [[SBNavigationBar alloc] init];

in my -initWithRootViewController:. But that didn't work out as I expected it. There's still the default navigationBar being displayed.

So what's the best point to overwrite the navigationBar?

Thanks in advance
–f

© Stack Overflow or respective owner

Related posts about iphone-sdk

Related posts about uinavigationcontroller