Вопрос

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.

Это было полезно?

Решение

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

self.title=@"Something Title";

Другие советы

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

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

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top