给self.navigationItem.rightBarButtonItem设置字体颜色

 

1 NSDictionary *dic = [NSDictionary dictionaryWithObject:[UIColor redColor] forKey:NSForegroundColorAttributeName];
2 [self.navigationItem.rightBarButtonItem setTitleTextAttributes:dic forState:UIControlStateNormal];

 

posted on 2017-03-20 10:35  codemaker313  阅读(167)  评论(0编辑  收藏  举报

导航