Group Group Group Group Group Group Group Group Group

raywenderlich.com Forums

Video Tutorial: Intro to Auto Layout Part 6: Constraints in Code

Learn how to create constraints in code.


This is a companion discussion topic for the original entry at https://www.raywenderlich.com/3201-auto-layout/lessons/7

In the challenge, the yellow view looks has a fixed width in both cases of Portrait and Landscape

However, in the solution the width changes (and almost equal to width of the screen) depending on the device being in Portrait or Landscape !