Set a custom subclass of UINavigationBar in UINavigationController programmatically

You don’t need to muck with the XIB simply use KVC.

[self.navigationController setValue:[[[CustomNavBar alloc]init] autorelease] forKeyPath:@"navigationBar"];

Leave a Comment