Milan Ruben Kappen
Milan Ruben Kappen

Reputation: 33

Xcode - Resize Buttons with Images Proportionally for iPhone 4s, 5, 6, 6+ in AutoLayout

I designed a UI that simply doesn't scale the right way - always squeezing and stretching something. I get everything to align the right way but the scaling messes everything up. In Subviews it even gets worse...

Here is a simplified version of the UI: http:// i.imgur.com/VIKVm5y.png

All the grey circles have images inside, should be buttons and scale proportional to every iPhone display size - so that a bigger display gets bigger buttons...

It's only meant to be for iPhones and portrait mode only.

Upvotes: 0

Views: 1103

Answers (1)

Milan Ruben Kappen
Milan Ruben Kappen

Reputation: 33

Ok actually this was pretty simple and I feel kinda stupid I asked the question in the first place. The solution was to lock the aspect ratio and set either the height or with equal to the superview and then edit the proportion to it in a second step until you have desired result...

Upvotes: 1

Related Questions