O'Reilly logo

iOS 7 Development Recipes: A Problem-Solution Approach by Joseph Hoffman, Shawn Grimes, Colin Francis, Hans-Eric Grönlund

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     3

Layout Recipes

The user interface and its layout are essential to most applications, especially in iOS with its orientation-sensitive devices. Users expect apps to support both portrait and landscape orientation in most cases. They also expect apps to run on both the iPhone and iPad. In other words, they expect your apps to have dynamic layouts.

This chapter shows you how to use Auto Layout, a great way to build dynamic user interfaces in iOS 7. Auto Layout is a feature first introduced in Xcode 4, and it provides a way to handle view layouts in iOS apps via the interface builder as well as programmatically. Auto Layout offers a very powerful model with which you can build layouts that scale and adapt to screen rotations in a way ...

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