title: UIScreen MainScreen Bounds returning wrong size
body: <p>So I created a new project with the latest version of XCode and tried to log the screen size of my app (to determine the device type for UI). I ran the following code from my iPhone 5:</p>
  
  <pre><code>NSLog(@"%f", [[UIScreen mainScreen] bounds].size.height);
  </code></pre>
  
  <p>This returned <code>480</code>, which is the screen size for the old iPhone family. I tried in the simulator and the same thing happened. Is there some property I have to enable in the project for it to recognize the screen size?</p>
  
  <p>This only happens for 5+ devices; if I run the game on my iPad, it recognizes the 1024 screen size.</p>
  
  <p>I know for a fact that this code has worked in the past. I made a game a while back using the exact same method and it had no problem detecting the screen size, but this was built in XCode 4.x.</p>
  
  <h2>Additional Info:</h2>
  
  <p>I am using a custom View Controller, which I create in the App Delegate with the following code:</p>
  
  <pre><code>- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
      {
  
      self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
  
      if([Global getDevice] == 1)
      {
          //iPhone 5+
          self.window.rootViewController = [[FivePlus alloc] initWithNibName:nil bundle:nil];
  
      }
      else if([Global getDevice] == 2)
      {
          //iPhone 4S-
          self.window.rootViewController = [[FourSMinus alloc] initWithNibName:nil bundle:nil];
      }
      else
      {
          //iPad
          self.window.rootViewController = [[iPad alloc] initWithNibName:nil bundle:nil];
      }
  
      [[self window] makeKeyAndVisible];
  
      // Override point for customization after application launch.
      return YES;
  }
  </code></pre>
  
  <h3>The getDevice method from Global.h:</h3>
  
  <pre><code>+ (int)getDevice
  {
  if([[UIScreen mainScreen] bounds].size.height == 568 || [[UIScreen mainScreen] bounds].size.width == 568)
      {
          return 1;
      }
      else if(UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)
      {
          return 3;
      }
      else
      {
          return 2;
      }
  }
  </code></pre>