translucent影响半透明的状态
2016-07-25 15:26
232 查看
<pre name="code" class="objc">//适配ios7
if( ([[[UIDevice currentDevice] systemVersion] doubleValue]>=7.0)) {
// self.edgesForExtendedLayout=UIRectEdgeNone;
self.navigationController.navigationBar.translucent = NO;
}
当translucent设置为NO时,效果是这样的:
[objc] view
plain copy
self.navigationController.navigationBar.translucent = YES;
当translucent设置为YES时,导航栏呈现半透明效果,是这样的:
if( ([[[UIDevice currentDevice] systemVersion] doubleValue]>=7.0)) {
// self.edgesForExtendedLayout=UIRectEdgeNone;
self.navigationController.navigationBar.translucent = NO;
}
当translucent设置为NO时,效果是这样的:
[objc] view
plain copy
self.navigationController.navigationBar.translucent = YES;
当translucent设置为YES时,导航栏呈现半透明效果,是这样的:
相关文章推荐
- Bootstrap tokenfield 使用指南
- 旋转字符及其判断
- hdu 2544 最短路(Dijkstra模板)
- sql server 2000收缩数据库【极简操作】
- 数据结构 在单链表和双链表中删除倒数第K个节点
- HDU 1394 Minimum Inversion Number (线段树)
- linux驱动相关知识整理
- PaperWriting——LaTeX编辑小技巧积累[1]
- Tint Drawable为图标着色
- Python开发【第一章】:简介和入门
- 如何使用科大 mirrors 加速 pip?
- JAXB方式读写xml实例
- 数据结构之对顺序栈的操作(C语言版)
- session入Redis
- Exchange Server 2016运维篇四:统一配置Outlook策略
- SQL索引一步到位
- 获取本机Ip
- 工作之一
- RN输入法遮挡TextInput
- android工具类总结