Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hide title of navigation bar without removing it

Tags:

iphone

I have a customized navigation bar with a image background. I do want to show the title on the background but I need its text for the back button in the next view.

self.title=@"" will not put (naturally) in the back button the previous title.

like image 915
Kenzo Avatar asked Mar 16 '10 14:03

Kenzo


People also ask

How do I hide the top navigation bar?

Touch “Settings” -> “Display” -> “Navigation bar” -> “Buttons” -> “Button layout”. Choose the pattern in “Hide navigation bar” -> When the app opens, the navigation bar will be automatically hidden and you can swipe up from the bottom corner of the screen to show it.

How do I hide items in navigation?

Go to your Navbar settings and find the navigation item you want to hide for a particular page. Click to edit and assign it a classname. You could assign it something like "hide-navigation-item."

How do you hide the navigation title in Swift?

There's a really easy way to make this happen, and it's a property on UINavigationController called hidesBarsOnTap . When this is set to true, the user can tap anywhere on the current view controller to hide the navigation bar, then tap again to show it.

How do I get rid of the transparent navigation bar?

If you want to remove the opacity or transparency from the sticky navigation bar, just navigate to Theme Options -> General -> Additional CSS and copy/paste this code and save changes. You could also manipulate the opacity by altering the value “1” at the end of the CSS statement.


1 Answers

Based on the suggestion of pheekicks, I found a tip to do it:

UILabel *label = [[UILabel alloc] init];
self.navigationItem.titleView = label;
like image 90
Kenzo Avatar answered Sep 23 '22 02:09

Kenzo