An example UIViewController container that allows you to view multilpe viewControllers at once by minimizing them all. You can move these minimized views around and swipe them off-screen to remove them. You can also tap on a minimized viewController to bring it to focus.
I've only tested this with Xcode 4.2+ so I don't know if it'll work < 4.2.
CAFCardStackController - the container view controller to display other view controllers in WebOS fasion
-
Methods
- (void)addCardViewController:(UIViewController *)viewController
- viewController
- If nil, otherwise noop.
- Assumes full screen display.
- When method completes, added to cardViewControllers array
- viewController
- (void)focusCardViewController:(UIViewController *)viewController
- viewController
- Must already be in cardViewControllers array, otherwise noop
- viewController
- (void)showAllCardViewControllers
- Shows card selector screen
- (void)removeCardViewController:(UIViewController *)viewController
- viewController
- Must already be in cardViewControllers array, otherwise noop
- When method completes, removed from cardViewControllers array
- viewController
- (void)addCardViewController:(UIViewController *)viewController
-
Properties
- NSArray *cardViewControllers
- 2/11/2012: Fixed an issue where the app would crash when built with Xcode 4.2.
- 5/20/2012: Fixed a memry leak when on removing a viewControler