标签:
设置导航栏的颜色
self.navigationController.navigationBar.barTintColor = [UIColor blackColor];
//设置导航栏字体的颜色大小setTitleTextAttributes后面接字典,
[self.navigationController.navigationBar setTitleTextAttributes:@{NSForegroundColorAttributeName: [UIColor whiteColor]}];
//修改系统返回按钮的颜色
self.navigationController.navigationBar.barTintColor = [UIColor blackColor];
self.navigationController.navigationBar.barStyle = UIStatusBarStyleDefault;
[self.navigationController.navigationBar setTintColor:[UIColor whiteColor]];
//隐藏返回文字
[[UIBarButtonItem appearance] setBackButtonTitlePositionAdjustment:UIOffsetMake(0, -60)
forBarMetrics:UIBarMetricsDefault];
标签:
原文地址:http://www.cnblogs.com/xiaolingling1126/p/5076700.html