title: Screen size is wrong on iPhone 6/iOS 8.3?
body: <p>I just stumbled on something very strange and baffling.</p>
  
  <p>I have code in a client app that loads different images based on screen size. </p>
  
  <p>I have code that uses the current screen to determine the screen size.</p>
  
  <p>On my iPhone 6 (actual device, not simulator) it shows a screen size of 320x568, which is the size of the iPhone 5 screen.</p>
  
  <p>If I run exactly the same code on the iPhone 6 sim, the screen size is reported correctly at 375x667.</p>
  
  <p>To strip away all extraneous details, I just created a new project with the Xcode single view project template. I used Objective-C in case it was a Swift problem. I added a viewWillAppear: method to the view controller that Xcode creates that looks like this:</p>
  
  <pre><code>- (void) viewWillAppear:(BOOL)animated
  {
    [super viewWillAppear:animated];
    UIScreen *screen = [UIScreen mainScreen];
    CGSize screenSize = screen.bounds.size;
    _label.text =[NSString stringWithFormat:
                  @"Screen size = %@",
                  NSStringFromCGSize(screenSize)];
  }
  </code></pre>
  
  <p>The Xcode template app is set up with an info.plist "UILaunchStoryboardName" value of "LaunchScreen", which actually refers to an XIB file called "LaunchScreen.xib" That XIB displays at launch time on all devices. However, the screen size reported on iPhone 6 is wrong.</p>
  
  <p>What am I missing?!?</p>