title: Issue with displaying the image correctly in iPhone(3.5 retina inch)
body: <p>I have to display the same image in iPhone and iPhone(3.5 retina inch). But it appears differently. </p>
  
  <p>The original image looks like this:</p>
  
  <p><img src="https://i.stack.imgur.com/0hDGR.png" alt="enter image description here"></p>
  
  <p>It runs correctly in iPhone but it doesn't run correctly in iPhone(3.5 retina inch). In iPhone(3.5 retina inch), it appears like this:</p>
  
  <p><img src="https://i.stack.imgur.com/soTNI.png" alt="enter image description here"></p>
  
  <p>I have tried this:</p>
  
  <pre><code>imageView.contentMode = UIViewContentModeScaleToFill; 
  </code></pre>
  
  <p>The whole code looks like this:</p>
  
  <pre><code>if(IS_IPHONE_5)
      {
          // code for 4-inch screen
          backgroundImageView.frame = CGRectMake(0, 0, 320, 460);
          backgroundImageView.image = [UIImage imageNamed:@"image1_iphone5.png"];
     } else {
          // code for 3.5-inch screen
          backgroundImageView.frame = CGRectMake(0, 0, 320, 370);
         backgroundImageView.contentMode = UIViewContentModeScaleToFill;
          [backgroundImageView setImage:[UIImage imageNamed:@"image1.png"]];
      }
  </code></pre>
  
  <p>but this doesn't solve the problem. Have been stuck with this issue for a day. Not sure what the problem is. Really need some guidance.</p>