title: How to detect if the device is an iPhone 5?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/12446990/how-to-detect-iphone-5-widescreen-devices">How to detect iPhone 5 (widescreen devices)?</a>  </p>
  </blockquote>
  
  
  
  <p>I am trying to add a new view to an existing ios4 project to handle the new iphone5 screen size.</p>
  
  <p>However I dont have an iphone here to test on and the code I am using to test the screen size isnt working, just wondering if there is another way of detecting the device type??</p>
  
  <pre><code>NSLog(@"%f", [ [ UIScreen mainScreen ] bounds ].size.height);
  
  if([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPhone){
      if([UIScreen mainScreen].bounds.size.height == 568.0)
      {
          //move to your iphone5 storyboard
          [self changeView:splashScreenBIGV viewH:splashScreenH animLength:SCREEN_CHANGE_ANIM_LENGTH];
     }
      else{
          //move to your iphone4s storyboard
          [self changeView:splashScreenV viewH:splashScreenH animLength:SCREEN_CHANGE_ANIM_LENGTH];            
      }
  }
  </code></pre>