9. Adaptive Deployment

As the iOS family continues to grow, apps should automatically support all new displays, orientations, and screens. Although iOS targets are not nearly as splintered as Android’s multitude, interfaces face numerous configurations for universal deployment. Until recently, routines specific to iPads or iPhones, to landscape or portrait orientation, and to Retina or non-Retina screens have transformed many iOS apps into a tangle of special-purpose code.

Auto Layout, a descriptive system for interface design, enabled developers to use rule-based view placement that automatically adjusts to screen dimensions and orientation. It was a first step on the road to true universal apps. Now new classes and protocols enable apps to ...

Get The Gourmet iOS Developer’s Cookbook: Even More Recipes for Better iOS App Development now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.