M0TRIX
M0TRIX

Reputation: 253

autoLayout not fitting all my screen sizes

this is basic problem but when I come across to complex views issues pops up when in intermediate level.

I show you two shot of my main page of App first one is my favorite (what I want) second needs more work to be.

enter image description here

look carefully UIimageS are closer to each other and bigger and enough space from two bottom button (running on s5)

enter image description here

but this one are far from each other and smaller and far from two bottom button and Unuseful space area (running on s6 plus)

my question and problem is if swift compiler decides when to increase icon sizes why not increasing now ??

could any body constraint this view and show me the result? what is my mistake ?? what am I missing ?

what I'm doing is giving width and hight and center alignment and vertical spacing for one of icon on top right.

you tell me how to constraint for all screen as my favorite my view is not messed up but what is bugging me is extra spaces

android is doing better it has a screen size file can manipullate it for all sizes

Upvotes: 1

Views: 132

Answers (1)

Ashley Mills
Ashley Mills

Reputation: 53082

You can achieve this pretty easily using nested UIStackViews, as follows…

8 Plus size phone…

4S size phone…

Upvotes: 1

Related Questions