0

I need a small help. As suggested by the forums here, I used auto layout in all screens I develop. In my iOS app, I have around 11 screens. I developed with my iPhone which is iPhone 6s. Last week, when I went to deploy this in my tester iPhone, who uses iPhone 7s, I noticed that most of the screens, the alignment is not the same as my iPhone.

I have auto layout enabled and constraints are not changed. Please can anyone help me on how to make my screens uniform in all iPhone devices? I am using xcode 10.

Thanks

6
  • There is no such device as „iPhone 7S”. Did you mean „iPhone 7+”? Also - withou seeing your constraint code its impossible to say what went wrong and how to fix it.
    – Losiowaty
    Aug 24, 2020 at 9:54
  • It's impossible to help you without knowing what it is you've done Aug 24, 2020 at 10:07
  • Also, you've probably setup your autolayout constraints incorrectly. If correctly setup, the constraints should layout the views correctly on all screen sizes... Aug 24, 2020 at 10:08
  • I am sorry. I meant iPhone 7+. I did not write any constraint code. As suggested by the forums, I just ticked the auto layout option in every screen. Apart from this I did not set any constraints. Am I missing anything here? Let me see if I can grab the images and put it here
    – DBHari
    Aug 24, 2020 at 10:22
  • "Just ticket the auto layout option" will not automatically make your UI adapt to different screen sizes. You should read up on how Autolayout constraints work. This link is good starting point. developer.apple.com/library/archive/documentation/… Aug 24, 2020 at 11:17

0

Your Answer

Reminder: Answers generated by Artificial Intelligence tools are not allowed on Stack Overflow. Learn more

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.