修改navigationController标题的字体和颜色
2016-08-24 本文已影响114人
刘振杰
// 标题字体和颜色
NSDictionary *attributes = [NSDictionary dictionaryWithObjectsAndKeys:
[UIColor whiteColor], NSForegroundColorAttributeName,
[UIFont boldSystemFontOfSize:21], NSFontAttributeName,
nil];
[self.navigationController.navigationBar setTitleTextAttributes:attributes];