Asadullah Ali
Asadullah Ali

Reputation: 1064

Resize images for iPhone 5 6 and 6 plus

I have a very simple question. I have designed a view in compactWidth|Regular Height and applied auto layout constraints on it. What I want is My view should be stretched on the whole screen. I have buttons and a table of static height. But problem is when I run it on iPhone 6 it fits on the screen when I run on iPhone 5 it break the table height and shrinks it and when I run on 6 PLUS it leaves the space in table. I want the whole view to scale up and down for different iPhones.

Edit: I want to scale this view to iphone 5, 6 and 6 plus

Upvotes: 1

Views: 173

Answers (1)

Parth Patel
Parth Patel

Reputation: 1290

If you didn't use Auto-Layout or Size Classes, your only hope is to programmatically change the positions/size of each element individually in the viewDidAppear or viewDidLayoutSubviews method of your LoginViewController. You would have to do it also on orientation change (if your app supports it).

It's a lot of work that can be easily be avoided by using Auto-Layout/Size Classes!

Upvotes: 1

Related Questions