Search code examples
iosipadautolayoutxcode8ios-autolayout

Buttons Width getting stretched while using autolayout in iPad screens?


I have a screen and i am using autolayout for the design purpose. The screen adjusts pretty well for all the screens in iPhone but in iPad the buttons get stretched a little making it weird to look . How to adjusts the autolayout for this? Below is my screenshot:

iPhone screen

iPad Screen


Solution

  • It depends what you want to achive f.e you can set aspect ratio of first button (as I can see rest of them are equal width equal hight to it) to 1:1 and they wont streach but it will mess up your view. It depends how you want them to look on ipads without streaching them.