title: I want to identify iphone versions in my project in ios
body: <p>hi iam using the following code in my project</p>
  
  <pre><code>#define isiPhone6 ( [[UIScreen mainScreen] bounds].size.height == 667)?TRUE:FALSE
  #define isiPhone5  ([[UIScreen mainScreen] bounds].size.height == 568)?TRUE:FALSE
  
  UIStoryboard *mainStoryboard = nil;
  
  if (isiPhone5)
      {  
              mainStoryboard = [UIStoryboard storyboardWithName:@"MainIphone5" bundle:nil];;
  
          // this is iphone 4 inch
      }
  
    else  if (isiPhone6)
      {
  
          mainStoryboard = [UIStoryboard storyboardWithName:@"MainIphone6" bundle:nil];;
  
          // this is iphone 4 inch
      }
  
  
    else
      {
          mainStoryboard = [UIStoryboard storyboardWithName:@"Main" bundle:nil];
          //Iphone  3.5 inch
      }
  
  
  self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
      self.window.rootViewController = [mainStoryboard instantiateInitialViewController];
      [self.window makeKeyAndVisible];
  </code></pre>
  
  <p>but the loop is not entering in to the isiphone6 and simulator taking the iphone5 storyboards.
   whats the problem can anyone help me please.......</p>