If your view controller is contained within a navigation controller, it is sufficient to set the title property:
self.title=@"Something Title";
Pregunta
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.
Solución
If your view controller is contained within a navigation controller, it is sufficient to set the title property:
self.title=@"Something Title";
Otros consejos
A better way to set the title is on the navigationItem
title property:
[self.navigationItem setTitle:@"UIViewController Title"];