title: Status bar and navigation bar issue in IOS7
body: <p>I am migrating my application to iOS 7. For handing the status bar issue I have added this code</p>
  
  <pre><code>if([[[UIDevice currentDevice] systemVersion] floatValue] &gt;= 7.0f)
  {
      CGRect frame = self.navigationController.view.frame;
      if(UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone)
      {
          frame.origin.y = 20;
      }
      else
      {
          frame.origin.x = 20;
      }
      [self.navigationController.view setFrame:frame];
  }
  </code></pre>
  
  <p>This is working fine in normal case. If I am changing orientation (app supports only landscape orientation) or presenting any view controller and dismissing model view controller my view controller alignment changed. The status bar again overlaps my view controller. This piece of code is not working at all. Please guide me to fix this status bar issue.  </p>
  
  <p>Case 2: This is how I am presenting my view controller</p>
  
  <pre><code>ZBarReaderViewController *reader = [ZBarReaderViewController new];
  reader.readerDelegate = self;
  
  if(UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)
      reader.supportedOrientationsMask = ZBarOrientationMaskLandscape;
  else
      reader.supportedOrientationsMask = ZBarOrientationMaskPortrait;
  
      [self presentModalViewController:reader animated:YES];
  </code></pre>
  
  <p>Ref:</p>
  
  <p><img src="https://i.stack.imgur.com/QMWVv.png" alt="enter image description here"></p>
  
  <p>Thanks in advance. </p>