O'Reilly logo

iOS 6 Recipes: A Problem-Solution Approach by 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    2

Layout Recipes

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

This chapter shows you how to use Autolayout, a great new way to build dynamic user interfaces in iOS 6.

Recipe 2-1: Using Autolayout

Autolayout is a new feature in iOS 6 that provides a way to handle view layouts in iOS apps. It supersedes the old “springs and struts” layout system, which is still present but now more or less obsolete; all you could do with “springs and struts” can ...

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