Pergunta

enter image description here

Hi guys, I'm having a problem getting rid of the title on my ViewController that is embedded in the navigation controller and tab bar controller. I somehow don't remember how and why did I set the title on my ViewController.

Please tell me a way to fix this problem guys. I also try

self.navigationcontroller.title = @"My Queue";

to change the name of the title, but it didn't work.

Foi útil?

Solução

If your view controller is contained within a navigation controller, it is sufficient to set the title property:

self.title=@"Something Title";

Outras dicas

A better way to set the title is on the navigationItem title property:

[self.navigationItem setTitle:@"UIViewController Title"];

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top