一.常用属性,方法
1.是否隐藏navigationbar
[self.navigationController setNavigationBarHidden:YES animated:YES];
2.改变navigationbar的颜色
self.navigationController.navigationBar.tintColor = [UIColor redColor]
3.改变navigationbar的背景图片
UINavigationBar* navBar = [self.navigationController navigationBar]; [navBar setBackgroundImage:[UIImage imageNamed:@"bg.png"] forBarMetrics:UIBarMetricsDefault];