self.navigationController.navigationBar.translucent=NO; 默认为yes if (floor(NSFoundationVersionNumber) <= NSFoundationVersionNumber_iOS_6_1) { [[UINavigationBar appearance]setTintColor:NavigationColor]; } else { [[UINavigationBar appearance]setTintColor:[UIColor whiteColor]]; // it set color of bar button item text [[UINavigationBar appearance]setBarTintColor:[UIColor GreenColor]]; // it set color of navigation [[UINavigationBar appearance] setBarStyle:UIBarStyleDefault]; // it set Style of UINavigationBar [[UINavigationBar appearance]setTitleTextAttributes:@{UITextAttributeTextColor : [UIColor whiteColor]}]; //It set title color of Navigation Bar }
iOS7 navigationBar and TabBar Color 默认有变化
猜你喜欢
转载自wang-peng1.iteye.com/blog/1979049
今日推荐
周排行