0

Can I use autolayout to provide different constraints for landscape and portrait orientations for an iPad?

Eric Aya
  • 69,473
  • 35
  • 181
  • 253

1 Answers1

1

Yes, what you are describing is Size Classes (the Any / Any you see at the bottom of Interface Builder), see Apple Docs, Size Classes. It can appear quite complex but is simpler than it looks and very useful, so stick with it.

Edit: additional info from another SO answer regarding iPad landscape vs portrait orientations.

Community
  • 1
  • 1
Ali Beadle
  • 4,486
  • 3
  • 30
  • 55