设置统一的颜色
有的时候我们想统一设置导航栏字体的一些属性,比如字体颜色,试过一些方法都不好使,记下来好使的方法。
NSMutableDictionary *textAttrs = [NSMutableDictionary dictionary];
textAttrs[NSForegroundColorAttributeName] = [UIColor whiteColor];
self.navigationBar.titleTextAttributes = textAttrs;
有的时候我们想统一设置导航栏字体的一些属性,比如字体颜色,试过一些方法都不好使,记下来好使的方法。
NSMutableDictionary *textAttrs = [NSMutableDictionary dictionary];
textAttrs[NSForegroundColorAttributeName] = [UIColor whiteColor];
self.navigationBar.titleTextAttributes = textAttrs;