title: Programmatically create an object under different screen sizes
body: <p>I am having the code below for creating an button.<br>
  Now the location of the button cannot be aligned or scaled correctly with different devices. </p>
  
  <p>I wrote the following code under iPhone 6 screen size. </p>
  
  <pre><code>UIButton *but= [UIButton buttonWithType:UIButtonTypeRoundedRect];
          [but addTarget:self action:@selector(buttonClicked:) forControlEvents:UIControlEventTouchUpInside];
          [but setFrame:CGRectMake(605, 320, 35, 35)];
          [but setTitle:@"Login" forState:UIControlStateNormal];
          [but setExclusiveTouch:YES];
          [self.view addSubview:but];
  </code></pre>
  
  <p>If i want to have the same position for iPhone 6 plus as the iPhone 6. What can i do? </p>
  
  <p>Many thanks.</p>