首页 > 代码库 > iOS更改NavigationBar Title颜色字体

iOS更改NavigationBar Title颜色字体

     NSDictionary * dict=[NSDictionary dictionaryWithObject:self.navigationController.navigationBar.tintColor forKey:NSForegroundColorAttributeName];//(字体:NSFontAttributeName)
     self.navigationController.navigationBar.titleTextAttributes = dict;

 

iOS更改NavigationBar Title颜色字体