iOS中navigationItem修改标题的颜色

UIColor * color = [UIColor redColor];
//这里我们设置的是颜色,
NSDictionary * dict = [NSDictionary dictionaryWithObject:color forKey:NSForegroundColorAttributeName];
//大功告成
self.navigationController.navigationBar.titleTextAttributes = dict;
self.navigationItem.title = @"用户注册(1/3";

你可能感兴趣的:(iOS中navigationItem修改标题的颜色)