O'Reilly logo

Anyone Can Create an App: Beginning iPhone and iPad programming by Wendy L. Wise

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 26. Working with Auto Layout

This chapter covers

  • Auto Layout
  • Stack views
  • Constraints

So far we haven’t focused much on ensuring that apps work across all different screen sizes, but we will now!

26.1. Changing the layout to work for all screen sizes

It’s important that all of your apps work on the different screen sizes that you’re building for, or your end users won’t be happy. Apple provides some classes that make it easy to lay out the scenes so they expand and contract based on the size of the screen the apps are running on. Stack views are classes that allow you to lay out the scenes in either rows or columns. If you think about the majority of the apps you use, most scenes can be divided by imaginary lines into rows and ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required