我在 AppDelegate
中设置了 UINavigationBar
的颜色,如下所示:
[[UINavigationBar appearance] setBarTintColor:[UIColor colorWithRed:40/255.0f green:167/255.0f blue:255/255.0f alpha:1.0f]];
我现在如何添加将覆盖在此 UINavigationBar
上的文本?
最佳答案
在viewcontroller中你可以在viewdidload中写如下代码
self.navigationItem.title = @"The title";
关于ios - 如何向我的 UINavigationBar 添加文本?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25596972/