iOS中navigationItem修改标题的颜色

UIColor * color = [UIColor redColor];
//这里我们设置的是颜色,
NSDictionary * dict = [NSDictionary dictionaryWithObject:color forKey:NSForegroundColorAttributeName];
//大功告成
self.navigationController.navigationBar.titleTextAttributes = dict;
self.navigationItem.title = @"用户注册(1/3";
posted @ 2015-07-03 17:07  Dived  阅读(1154)  评论(0编辑  收藏  举报