// self.navigationController.navigationBar.barTintColor = MAINCOLOR;
// [self.navigationController.navigationBar setBackgroundImage:[[UIImage alloc] init] forBarMetrics:(UIBarMetricsDefault)];
[self.navigationController.navigationBar setBackgroundImage:[UIImage imageWithColor:MAINCOLOR] forBarMetrics:(UIBarMetricsDefault)];

// self.navigationController.navigationBar.clipsToBounds = YES;//为了去一条线,引入的statubar白边

posted @ 2019-07-29 15:55  路在脚下,  阅读(97)  评论(0编辑  收藏  举报