title: UINavigationBar/Status Bar issue in IOS7
body: <h1>Final EDIT</h1>
  <p>(Rather than having an overly long question with edits making a final edit for clarification, please see other edits if needed).</p>
  <h2>Controller Setup</h2>
  <p>I have an application that is setup as follows:</p>
  <p>InitialViewController (subclass of <a href="https://github.com/edgecase/ECSlidingViewController" rel="noreferrer">ECSlidingViewController</a>)</p>
  <p>Main Navigation Controller (subclass of <code>UINavigationController</code>)</p>
  <p>Main Home View Controller (subclass of <code>UIViewController</code>)</p>
  <hr />
  <p>In the <code>viewDidLoad</code> of the initialViewController I load the main navigation controller in with the Home View Controller as its root.</p>
  <pre><code>self.topViewController = [self.storyboard instantiateViewControllerWithIdentifier:@&quot;MainNavVC&quot;];
  </code></pre>
  <hr />
  <h2>The Issue</h2>
  <p>On the first load of the application the status bar and navigation bar are seperated.
  <img src="https://i.stack.imgur.com/ku0k2.png" alt="enter image description here" /></p>
  <p>This is the desired effect.</p>
  <p>However, I then load a modal view controller and close it, using the standard methods:</p>
  <pre><code>[self performSegueWithIdentifier:@&quot;LoadSelectOpponentVC&quot; sender:self];
  </code></pre>
  <p>Then close with:</p>
  <pre><code>[self dismissViewControllerAnimated:YES completion:nil];
  </code></pre>
  <p>This in turn causes the main navigation controller (holding the home view controller) to display the status bar incorrectly and overlapping:</p>
  <p><img src="https://i.stack.imgur.com/FMw65.png" alt="enter image description here" /></p>
  <h2>Testing</h2>
  <ol>
  <li>The plist setting is set to YES - <code>View controller-based status bar appearance</code></li>
  <li>I have tried setting the <code>edgesForExtendedLayout</code> to the relevant none, but no change.</li>
  </ol>
  <h2>Logging</h2>
  <p>I have tried to log out some frames to see where the issue occurs:</p>
  <p>On first Load:</p>
  <p>Main Nav VC - View Frame - {{0, 0}, {320, 480}}</p>
  <pre><code>Main Nav VC - Nav Bar Frame - {{0, 0}, {320, 44}}
  
  Initial VC - View Frame - {{0, 0}, {320, 480}}
  
  Home VC - View Frame - {{0, 0}, {320, 480}} -- viewDidLoad Home VC
  
  Home VC - View Frame - {{0, 64}, {320, 416}} -- viewWillAppear Home VC
  
  --- After Modal is opened/closed ----
  
  Home VC - View Frame - {{0, 64}, {320, 416}} -- viewWillAppear Home VC
  
  Main Nav VC - View Frame - {{0, 0}, {320, 480}} -- viewWillAppear Main Nav
  
  Main Nav VC - Nav Bar Frame - {{0, 20}, {320, 44}} -- viewWillAppear Main Nav
  
  Home VC - View Frame - {{0, 44}, {320, 436}} -- viewDidAppear Home VC
  </code></pre>