Auto layout does not work in Xcode 7

Asked

Viewed 93 times

0

I opened my project which was in Xcode 6 in Xcode 7 and the auto layout (for different devices) is not working in the simulator. Below I put a simulator image on iphone 4s and another on iphone 6. Someone knows how to solve?

Thank you.

iPhone 4S

iPhone 6

  • 1

    Note that they are different dimensions for each of the simulators you mentioned. If the self-layout is activated and the constraints properly defined, there would be no reason for it to happen. So, based only on the images, my opinion is that the constraits are not correct. If you can show us how they are, we can help more. And that’s not because of Xcode 7, because the iPhone 6 simulator comes since last year.

  • Hi Paulo, I didn’t really define contractions. In Xcode 6 it worked. He increased the screen on iPhone 6 to match the layout with iPhone 4, for example

  • I understand that this no longer occurs in Xcode 7.

  • @Celsomelero take a look at my answer http://answall.com/questions/91064/layout-largura-100-e-ou-altura-10/91069#91069

1 answer

0

By default in Xcode 7, constraints are used, which forces the compiler to create a "screen size" for each iPhone device resolution.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.