views:

34

answers:

1

Is there any way to hide the title view in a UINavigationBar?

Thanks

+1  A: 

The titleView is a UIView :

titleView A custom view displayed in the center of the navigation bar when this item is the top item.

@property(nonatomic, retain) UIView *titleView

So I think you can try this :

[titleView setHidden:YES];
MathieuF
what is that a subview of though? `[nc.navigationItem.titleView setHidden:YES];` doesn't work...
Thomas Clayson
And if you set it to nil like this nc.navigationItem.titleView = nil ?
MathieuF