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