Size Classes or: How I Learned to Stop Worrying and Love iOS 9 Split Screen
summary
Size classes let an app switch between UIUserInterfaceSizeClass values (Compact/Regular) driven by UITraitCollection, so compile against the iOS 9 SDK, include a launch storyboard and enable all orientations or set requires full screen in Info.plist to opt out. Use traitCollectionDidChange and viewWillTransitionToSize:withTransitionCoordinator: for animated layout, UIImage asset catalogs per-trait for icons, and UISplitViewController/UIPopoverPresentationController to get adaptive behavior. Enabling is usually automatic; legacy code that branches on UIUserInterfaceIdiom or caches single-size thumbnails needs refactoring and dual-size thumbnail generation.
AI-written summary · about
