Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hide the title from UINavigationBar?

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

like image 368
Thomas Clayson Avatar asked Oct 28 '10 13:10

Thomas Clayson


1 Answers

self.navigationItem.titleView = [[UIView alloc] initWithFrame:CGRectZero]; self.title = @"Home";

Setting to nil will NOT work as described in documentation: If this property value is nil, the navigation item’s title is displayed in the center of the navigation bar when the receiver is the top item. If you set this property to a custom title, it is displayed instead of the title.

like image 121
marchinram Avatar answered Oct 02 '22 14:10

marchinram