title: Navigation bar appear over the views with new iOS7 SDK
body: <pre><code>CGRect cgRect1 = [[UIScreen mainScreen] applicationFrame];
  
  
  UISearchBar  *mySearchBar = [[UISearchBar alloc] 
                 initWithFrame:CGRectMake(0, 0, cgRect.size.width, 40)];
  
  mySearchBar.autoresizingMask = 
                UIViewAutoresizingFlexibleWidth|UIViewAutoresizingFlexibleHeight ;
  
  
  UITableView  *myTableView = [[UITableView alloc] 
       initWithFrame:CGRectMake(0, 40, cgRect.size.width, cgRect.size.height-40)];
  
  myTableView.autoresizingMask = 
                 UIViewAutoresizingFlexibleWidth|UIViewAutoresizingFlexibleHeight;
  
  
  [self.view addSubview:mySearchBar];
  [self.view addSubview:myTableView];
  </code></pre>
  
  <p>In the earlier versions it is working correctly. The search bar is appearing below the <code>statusbar</code> and navigation bar. The <code>tableview</code> is appearing below the search bar</p>
  
  <p>But when I run this on <code>Xcode 5 sdk iOS 7</code>, the search bar is not visible (I think its placed under the status bar and navigation bar) , and also the navigation bar is appearing over the table view.</p>
  
  <p>Will it be fixed with <code>iOS 7</code> stable release ?</p>
  
  <p>Or is it the problem of my coding ?</p>
  
  <p>Or should we handle it by adding the y <code>(y = statubar height + nav bar height)</code> value for <code>iOS 7</code> ?</p>
  
  <p>I recently downloaded Xcode 5 DP to test my apps in iOS 7. The first thing I noticed and confirmed is that my view's bounds is not always resized to account for the status bar and navigation bar.</p>
  
  <p>In viewDidLayoutSubviews, I print the view's bounds:</p>
  
  <pre><code>{{0, 0}, {320, 568}}
  </code></pre>
  
  <p>This results in my content appearing below the navigation bar and status bar.</p>
  
  <p>I know I could account for the height myself by getting the main screen's height, subtracting the status bar's height and navigation bar's height, but that seems like unnecessary extra work.</p>
  
  <p>Has anyone else experienced this issue?</p>
  
  <p><strong>UPDATE:</strong></p>
  
  <p>I've found a solution for this specific problem. Set the navigation bar's translucent property to NO:</p>
  
  <pre><code>self.navigationController.navigationBar.translucent = NO;
  </code></pre>
  
  <p>This will fix the view from being framed underneath the navigation bar and status bar.</p>
  
  <p>However, I have not found a fix for the case when you want the navigation bar to be translucent. For instance, viewing a photo full screen, I wish to have the navigation bar translucent, and the view to be framed underneath it. That works, but when I toggle showing/hiding the navigation bar, I've experienced even stranger results. The first subview (a <code>UIScrollView</code>) gets its bounds y origin changed every time.</p>