ios中导航栏的设置
2017-07-11 09:10
176 查看
[self.navigationItem.leftBarButtonItem setTitleTextAttributes:[NSDictionary dictionaryWithObjectsAndKeys: [UIFont boldSystemFontOfSize:15],NSFontAttributeName, nil] forState:UIControlStateNormal];//设置左边按钮字体的大小 self.navigationController.navigationBar.tintColor = [UIColor grayColor]; //设置按钮文字的的颜色 [self.navigationController.navigationBar setTitleTextAttributes: @{NSFontAttributeName:[UIFont systemFontOfSize:19], NSForegroundColorAttributeName:[UIColor redColor]}];//设置导航栏字体的大小和颜色 self.hidesBottomBarWhenPushed=YES;//设置在push的时候隐藏tabbar [self.navigationController pushViewController:view1 animated:YES]; self.hidesBottomBarWhenPushed=NO;//设置在返回时候显示按钮
相关文章推荐
- ios设置导航栏背景图片、返回按钮背景、标题颜色等等
- ios 导航栏设置
- iOS-设置navigation导航栏标题的颜色
- ios学习(导航栏上两个简单的设置)
- iOS 设置导航栏的主题
- iOS设置状态栏和导航栏颜色
- iOS项目开发实战——自定义设置导航栏和状态栏背景
- 转:ios导航栏设置
- ios设置导航栏的背景颜色或背景图片
- UI_iOS应用状态栏样式设置_及导航栏(NavigationBar)透明
- iOS开发 设置整个导航栏背景图、字体及标签栏更改选中背景图的颜色
- [iOS微博项目 - 1.1] - 设置导航栏主题(统一样式)
- iOS 导航栏rgb值与设置的有差异
- iOS-设置导航栏"返回"按钮 (附效果图)
- iOS中设置导航栏标题的字体颜色和大小
- ios导航栏的背景图片设置
- iOS设置导航栏透明度
- ios ios7导航栏返回键设置
- iOS 8 设置导航栏的背景颜色和背景图片
- iOS中设置导航栏标题的字体颜色和大小