title: how can i write the code for iphone 3.5 inches screen and 4 inches screen
body: <p>I am developing an app. In the app I wrote the code for a 3.5-inch screen. I took one view controller; in this view controller I want to display two images, one for the top (Imagelogo) and another for the bottom (Image Building). On the 3.5-inch screen there is no problem with the display. But on the 4-inch screen, there is a display problem. The two images are not displayed properly. I don't know how to write the same code for both the 3.5 and 4-inch screen. Can I use macros? Please give me ideas, anyone. I am new to programming. Thanks in advance.</p>
  
  <p>The below is my code.</p>
  
  <p>Viewcontroller.m (3.5 inches screen)</p>
  
  <p>This image will be displayed on top.</p>
  
  <pre><code>imgLogo=[[UIImageView alloc]initWithFrame:CGRectMake(75, 10, 162, 57)];
  imgLogo.image=[UIImage imageNamed:@"Logo-01.png"];
  [self.view addSubview:imgLogo];
  </code></pre>
  
  <p>This image will be displayed on bottom</p>
  
  <pre><code>imgBuilding=[[UIImageView alloc]initWithFrame:CGRectMake(0, 320, 320,140 )];
  imgBuilding.image=[UIImage imageNamed:@"image-02.png"];
  [self.view addSubview:imgBuilding];
  </code></pre>