您的位置:首页 > 其它

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时,导航栏呈现半透明效果,是这样的:

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: