ios导航栏颜色设置

1>   默认状态

      self.navigationController.navigationBar.barStyle = UIBarStyleDefault;

      self.navigationController.navigationBar.translucent = YES;

      self.navigationController.navigationBar.tintColor = nil;`


2>  黑色不透明

self.navigationController.navigationBar.barStyle=UIBarStyleBlack;

 self.navigationController.navigationBar.translucent=NO;

  self.navigationController.navigationBar.tintColor= [UIColorwhiteColor];`


3>    黑色透明

self.navigationController.navigationBar.barStyle = UIBarStyleBlack;

self.navigationController.navigationBar.translucent = YES;

self.navigationController.navigationBar.tintColor = [UIColor whiteColor];`


self.navigationController.navigationBar.translucent = NO

你可能感兴趣的:(ios导航栏颜色设置)