![]() |
EnkiUtils
Small library of classes that Enki Labs uses internally.
|
#import <EnkiUnorderedController.h>


Instance Methods | |
| (void) | - initCurrentWithNibName:bundle: |
| (void) | - replaceViewController:withDirection: |
| (void) | - coverViewController:withDirection: |
| (void) | - uncoverViewControllerwithDirection: |
Properties | |
| UIViewController * | current |
| UIViewController * | cover |
The EnkiUnorderedController enables you to switch from one view controller to another and use any of the up, down, left or right slide animations. You can either cover the current view controller, which lets you uncover it and come back to your previous one, or you can simply replace the view controller with a new one.
There is NO cover stack. If you cover more than once you must only uncover once, to see the original view controller. (And actually, this isn't tested at all but it should behave like that.) TODO: fix this, us an NSArray
Please see the sample project for an app that demonstrates how replace works.
Definition at line 29 of file EnkiUnorderedController.h.
| - (void) coverViewController: | (UIViewController *) | target | |
| withDirection: | (slideDirection) | direction | |
Cover the current view controller with the target view controller using a direction slide animation. If the current view controller is already covered, cover it again but the current cover is not preserved.
Definition at line 62 of file EnkiUnorderedController.m.
| - (void) initCurrentWithNibName: | (NSString *) | nibNameOrNil | |
| bundle: | (NSBundle *) | nibBundleOrNil | |
init the currently displayed view controller from its nib. The nib file name must be the same as the class name.
Definition at line 31 of file EnkiUnorderedController.m.
| - (void) replaceViewController: | (UIViewController *) | target | |
| withDirection: | (slideDirection) | direction | |
Replace the current view controller with the target view controller using a direction slide animation. removeFromParentViewController is called on the current target view controller
Definition at line 57 of file EnkiUnorderedController.m.
| - (void) uncoverViewControllerwithDirection: | (slideDirection) | direction |
Slide the covering view controller away using direction, slide the current view controller in, also using direction. Call removeFromParentViewController on the cover and then set it to nil
Definition at line 67 of file EnkiUnorderedController.m.
|
readwritenonatomicstrong |
The property that contains the last view controller that was used as a cover.
Definition at line 34 of file EnkiUnorderedController.h.
|
readwritenonatomicstrong |
The property that contains the current view controller. This is the view controller that will be displayed if you cover and then uncover.
Definition at line 32 of file EnkiUnorderedController.h.