title: Navigation bar stop being translucent when self.edgesForExtendedLayout = UIRectEdgeNone
body: <pre><code>- (void)viewDidLoad
  {
      [super viewDidLoad];
      if ([self respondsToSelector:@selector(edgesForExtendedLayout)])
      {
          self.edgesForExtendedLayout = UIRectEdgeNone;
          self.navigationController.navigationBar.translucent=YES;
      }
  
      // Do any additional setup after loading the view.
  }
  </code></pre>
  
  <p>I do not want my scrollView to be behind the navigationBar by default. So I set self.edgesForExtendedLayout = UIRectEdgeNone;.</p>
  
  <p>That viewDidLoad is the mother viewDidLoad of all my viewController. </p>
  
  <p>That's fine. But I like the translucent effect.</p>
  
  <p>It seems that the translucent effect is gone when I set self.edgesForExtendedLayout to none.</p>
  
  <p>How do I set that to none and still got that translucent effect.</p>
  
  <p><img src="https://i.stack.imgur.com/ge5ST.png" alt="enter image description here"></p>
  
  <p><img src="https://i.stack.imgur.com/Ci08N.png" alt="enter image description here"></p>
  
  <p>I think a good solution would be to arrange the inset of the scrollview.</p>
  
  <p>I did that</p>
  
  <pre><code>- (void)viewDidLoad
  {
      [super viewDidLoad];
      if ([self respondsToSelector:@selector(edgesForExtendedLayout)])
      {
          //self.edgesForExtendedLayout = UIRectEdgeNone;
          self.navigationController.navigationBar.translucent=YES;
          self.automaticallyAdjustsScrollViewInsets = YES;
      }
  
      // Do any additional setup after loading the view.
  }
  </code></pre>
  
  <p>And this is what I got:</p>
  
  <p><img src="https://i.stack.imgur.com/mbaKS.png" alt="enter image description here"></p>