Version 1.2, 2013-02-15
Updated project to build with the iOS SDK 6. Now uses ARC.
(Full Revision History)
iOS 6.0 SDK
iOS 4.3 or later
Demonstrates how to implement alternate or distinguishing view controllers for each particular device orientation. Through the help of the following UIViewController properties, this can be easily achieved - @property(nonatomic,assign) UIModalTransitionStyle modalTransitionStyle; // for a transition fade @property(nonatomic,assign) BOOL wantsFullScreenLayout; // for any view controller to appear over another
This sample implements a two different view controllers one for portrait and one for landscape. The portrait view controller listens for device orientations in order to properly swap in and out the landscape view controller. It uses the above two properties to achieve the visual cross-fade effect.
© 2013 Apple Inc. All Rights Reserved. (Last updated: 2013-02-15)