iOS 导航栏navigation的translucent属性 影响半透明状态

//适配ios7
if( ([[[UIDevice currentDevice] systemVersion] doubleValue]>=7.0)) {
//        self.edgesForExtendedLayout=UIRectEdgeNone;
    self.navigationController.navigationBar.translucent = NO;
}
 
  

当translucent设置为NO时,效果是这样的:

iOS 导航栏navigation的translucent属性 影响半透明状态_第1张图片

   self.navigationController.navigationBar.translucent = YES;

当translucent设置为YES时,导航栏呈现半透明效果,是这样的:

iOS 导航栏navigation的translucent属性 影响半透明状态_第2张图片


你可能感兴趣的:(iOS)