美文网首页
iOS navigationController 改变 titl

iOS navigationController 改变 titl

作者: cc463e4700cd | 来源:发表于2016-08-25 09:14 被阅读262次

1.添加navigationController的title

[self.navigationItem setTitle:@""];

2.设置navigationController title 的颜色

UIColor *color = [UIColor whiteColor];

NSDictionary *dict = [NSDictionary dictionaryWithObject:color forKey:UITextAttributeTextColor];

self.navigationController.navigationBar.titleTextAttributes = dict;

相关文章

网友评论

      本文标题:iOS navigationController 改变 titl

      本文链接:https://www.haomeiwen.com/subject/zpcujttx.html