title: Xcode: Background image resized in app
body: <p>I'm using a 640x1136 image as background for my app but the image appears zoomed in. The same image, as splash screen, is displayed correctly. I followed the directions found <a href="https://stackoverflow.com/questions/13070369/xcode-4-5-background-image-iphone-4-4s-5">here</a>.
  Two pics,</p>
  
  <p>the original image:</p>
  
  <p><img src="https://i.stack.imgur.com/VKvgs.png" alt="640x1136 image"></p>
  
  <p>Screen capture, simulator iPhone 6.1, and the look is the same on my iPhone 5</p>
  
  <p><img src="https://i.stack.imgur.com/yXIAB.jpg" alt="screen capture"></p>
  
  <p>The code I am using is the following:</p>
  
  <pre><code>CGRect screenSize = [[UIScreen mainScreen]bounds];
  if (screenSize.size.height == 568.0f) {
      self.view.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"Default-568h@2x"]];
  }else {
      self.view.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"Default@2x"]];
  }
  </code></pre>