标签:
//设置导航栏baritem和返回baiitem样式 UIBarButtonItem *barItem = [UIBarButtonItem appearance]; //去掉返回按钮上的字 [barItem setBackButtonTitlePositionAdjustment:UIOffsetMake(0, -60) forBarMetrics:UIBarMetricsDefault]; //把按钮设置为白色 barItem.tintColor = [UIColor whiteColor]; UINavigationBar *navBar = [UINavigationBar appearance]; //设置导航栏 字体颜色 [navBar setTitleTextAttributes:@{NSForegroundColorAttributeName:[UIColor whiteColor]}];//设置导航栏标题颜色 [navBar setBarTintColor:[UIColor blueColor]];//设置导航栏背景色 navBar.tintColor = [UIColor whiteColor];//设置导航栏返回按钮颜色 appdelegate设置 //设置全局状态栏字体的颜色 application.statusBarStyle = UIStatusBarStyleLightContent;
iOS设置导航栏样式(UINavigationController)
标签:
原文地址:http://www.cnblogs.com/damiao/p/4399092.html