常用的语句
2015-08-16 21:31
363 查看
导航栏的隐藏
self.navigationController.navigationBarHidden = YES;
[self.navigationController setNavigationBarHidden:YES animated:YES];
这个改变所有的 导航栏的属性 一般写在 appDelegate 中
[[UINavigationBar appearance] setTitleTextAttributes:@{NSForegroundColorAttributeName:kColorWhite ,NSFontAttributeName:[UIFont systemFontOfSize:20.f]}];
设置单个导航栏的 标题属性
[self.navigationController.navigationBar setTitleTextAttributes:
@{NSFontAttributeName:[UIFont systemFontOfSize:15],
NSForegroundColorAttributeName:kColorBlack}];
设置导航栏的 背景图片
[[UINavigationBar appearance] setBackgroundImage:[UIImage imageNamed:@"nav_bar3"] forBarMetrics:UIBarMetricsDefault];
[[UINavigationBar appearance] setShadowImage:[UIImage alloc]];
[[UINavigationBar appearance] setTintColor:kColorWhite];
导航栏自定义view
self.navigationItem.titleView = titleBtn;
[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent];
底部tabbar 隐藏
self.tabBarController.tabBar.hidden = YES;
_pageCountrol的圆点图片
[_pageCountrol setValue:[UIImage imageNamed:@"icon_circle1"] forKey:@"_currentPageImage"];
[_pageCountrol setValue:[UIImage imageNamed:@"icon_circle2"] forKey:@"_pageImage"];
self.navigationController.navigationBarHidden = YES;
[self.navigationController setNavigationBarHidden:YES animated:YES];
这个改变所有的 导航栏的属性 一般写在 appDelegate 中
[[UINavigationBar appearance] setTitleTextAttributes:@{NSForegroundColorAttributeName:kColorWhite ,NSFontAttributeName:[UIFont systemFontOfSize:20.f]}];
设置单个导航栏的 标题属性
[self.navigationController.navigationBar setTitleTextAttributes:
@{NSFontAttributeName:[UIFont systemFontOfSize:15],
NSForegroundColorAttributeName:kColorBlack}];
设置导航栏的 背景图片
[[UINavigationBar appearance] setBackgroundImage:[UIImage imageNamed:@"nav_bar3"] forBarMetrics:UIBarMetricsDefault];
[[UINavigationBar appearance] setShadowImage:[UIImage alloc]];
[[UINavigationBar appearance] setTintColor:kColorWhite];
导航栏自定义view
self.navigationItem.titleView = titleBtn;
[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent];
底部tabbar 隐藏
self.tabBarController.tabBar.hidden = YES;
_pageCountrol的圆点图片
[_pageCountrol setValue:[UIImage imageNamed:@"icon_circle1"] forKey:@"_currentPageImage"];
[_pageCountrol setValue:[UIImage imageNamed:@"icon_circle2"] forKey:@"_pageImage"];
相关文章推荐
- CDN
- 质数和水仙花数的判断
- Java关键字final、static使用总结
- chenw Hibernate 缓存机制
- 库和框架的区别
- 每日,成就逻辑
- Android、iPhone和Java三个平台一致的加密工具
- 《Linux内核分析》(三)——跟踪分析Linux内核的启动过程
- poj3090Visible Lattice Points
- Python中类的属性的访问控制
- PAT 1083. List Grades (25)
- eclipse从数据库逆向生成Hibernate实体类
- 树莓派 GPIO python
- 《Linux内核分析》(一)——反汇编一个简单的C程序并分析其汇编代码的执行
- 决策树
- DAG模型(矩形嵌套)
- poj3761 bubble sort
- HDU 3335 - Divisibility(二分图)
- seci-log 1.11 发布,日志分析软件增加 ftpserver 等功能
- iOS中的固定 高度