设置导航栏颜色和字体颜色
self.navigationController.navigationBar.barTintColor = [UIColor blueColor];
// //导航栏背景
// [self.navigationController.navigationBar setBackgroundImage:[UIImage p_w_picpathNamed:@"navigationImage_2.png"] forBarMetrics:UIBarMetricsDefault];
//
// self.navigationController.navigationBar.barStyle = UIBarStyleBlackTranslucent;
// //导航栏透明
// [self.navigationController.navigationBar setBackgroundImage:[UIImage p_w_picpathNamed:@"talk_icon_03.png"] forBarMetrics:UIBarMetricsCompact];
// //设置样式,不加这句话会有横线
// self.navigationController.navigationBar.barStyle = UIBarStyleBlackTranslucent;
//修改title字体颜色
[self.navigationController.navigationBarsetTitleTextAttributes:@{NSForegroundColorAttributeName:[UIColorblackColor]}];
self.navigationController.navigationBar.barTintColor=HexRGB(0X62ccca);
//修改返回箭头颜色样式
UIImage*backButtonImage = [[UIImagep_w_picpathNamed:@"talk_icon_03.png"]resizableImageWithCapInsets:UIEdgeInsetsMake(0,30,0,0)];
[[UIBarButtonItemappearance]setBackButtonBackgroundImage:backButtonImageforState:UIControlStateNormalbarMetrics:UIBarMetricsDefault];
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。