重写以下方法可以得到UINavigationBar
+(void)initialize{
UINavigationBar *tabbar = [UINavigationBar appearance];
[tabbar setBackgroundImage:[UIImage imageNamed:@"NavBar64"] forBarMetrics:UIBarMetricsDefault];
[tabbar setTitleTextAttributes:@{
NSForegroundColorAttributeName:[UIColor whiteColor]
}];
[tabbar setTintColor:[UIColor whiteColor]];
}