Adding Views. Storyboard VS. Programmatically
<p>I have been in a struggle for a long time with this one.
Lets say I have a UIViewController and need to place an UIImageView with an UIImage in that controller.
So I have two ways to do it:</p>

<p>1.) Via Storyboard</p>

<p>2.) <code>UIImageView *imageView = [UIImageView new];
   imageView.frame = CGRectMake(bla, bla, bla);
   [self.view addSubview: imageView];</code></p>

<p>Also I need to support different screen sizes (from iPhone 4 till iPhone6+), and autolayout with constraints isn't fully clear for me. And I'm sh*tcoding like</p>

<p><code>int wrapperHeight =  (screen.height == 480) ? 100 : 200</code></p>

<p>I feel that i'm doing something wrong.
When i started to learn objective-c,  I have seen some opensource projects, and there was no storyboard at all, so i thought that adding views programmatically is a good practice. </p>

<p>Could you please explain me the "right way" ?</p>