title: UIImageview programmilly manage for iphone5 and iphone4
body: <p><img src="https://i.stack.imgur.com/Lyn6j.png" alt="enter image description here">I have an Issue about UIImageView Manage by XIB file for iphone5 screen Height and Iphone4 Screen Height. </p>
  
  <p>I Try to Manage code for UIImageView like this </p>
  
  <p>~</p>
  
  <pre><code> CGFloat screenHeight = [UIScreen mainScreen].bounds.size.height;
      if ([UIScreen mainScreen].scale == 2.f &amp;&amp; screenHeight == 568.0f) {
          backgroundImage.autoresizingMask=UIViewAutoresizingFlexibleHeight|UIViewAutoresizingFlexibleWidth;
          frameView.autoresizingMask=UIViewAutoresizingFlexibleHeight;
  
  
          backgroundImage.image = [UIImage imageNamed:@"bg-568h@2x.png"];
          //frameView.frame=CGRectMake(16, 0, 288, 527);
  
          frameView.image = [UIImage imageNamed:@"setframe-568h@2x.png"];
      }
      else
      {
          backgroundImage.image = [UIImage imageNamed:@"bg@2x.png"];
          frameView.image = [UIImage imageNamed:@"setframe@2x.png"];
      }  ;
  </code></pre>
  
  <p>Please suggest me about Issues, FrameView is a UIImageView which have white Image, </p>
  
  <p>Please 
  THanks </p>