Skip to content
Newer
Older
100644 62 lines (47 sloc) 2.06 KB
3a2dd4d @Squeegy Added helper kit and simplified and cleaned up some code base don it.
authored Feb 23, 2010
1 //
2 // UIViewController+HelperKit.h
3 // HelperKit
4 //
5 // Created by Alex Wayne on 2/23/10.
6 // Copyright 2010 Beautiful Pixel. All rights reserved.
7 //
8
9 #import <UIKit/UIKit.h>
0abdb26 @Squeegy Use a split controlle rthe whole time.
authored Mar 24, 2010
10 #import <QuartzCore/QuartzCore.h>
3a2dd4d @Squeegy Added helper kit and simplified and cleaned up some code base don it.
authored Feb 24, 2010
11
12
13 @interface UIViewController (HelperKit)
14
15 #pragma mark Initializers
16
498b752 @Squeegy Proper universal app support
authored Mar 31, 2010
17 // Creates controller with a nib named same as the class: "FooController" would load "FooController.xib"
18 // This method will also look for for xib's with a specific naming convention based on device screen size
19 // and orientation. For example, in iPhone (or iPod Touch) in portrait will look for xibs inthe following
20 // order:
21 //
22 // * MyController.iPhone.Portrait.xib
23 // * MyController.iPhone.xib
24 // * MYController.xib
25 //
26 // The first one that it finds will be loaded for the controllers view. In the xib filename, the general
27 // format is:
28 //
29 // <ControllerClassName>.<ScreenType>.<Orientation>.xib
30 //
31 // Supported screen types are currently "iPhone" and "iPad".
32 // Supported orientations are currently "Portrait" and "Landscape"
33 + (id)controllerWithNib;
34
0abdb26 @Squeegy Use a split controlle rthe whole time.
authored Mar 25, 2010
35 + (id)controller;
36 + (id)controllerWithNibName:(NSString*)nibName;
37 + (id)controllerWithNibName:(NSString*)nibName bundle:(NSBundle*)bundle;
3a2dd4d @Squeegy Added helper kit and simplified and cleaned up some code base don it.
authored Feb 24, 2010
38
39 - (id)initWithNibName:(NSString *)nibName;
5449c3b @Squeegy Unbroke everything.
authored Feb 26, 2010
40 - (id)initWithNib; // Instance version of the controllerWithNib method
3a2dd4d @Squeegy Added helper kit and simplified and cleaned up some code base don it.
authored Feb 24, 2010
41
0abdb26 @Squeegy Use a split controlle rthe whole time.
authored Mar 25, 2010
42 #pragma mark Animation Helpers
43
44 // Moves in the controller from the bottom of the screen like a modal presentation
45 - (void)slideUp;
46
47 // Moves out the controller from the bottom of the screen like a modal dismissal
48 - (void)slideDown;
49
50 // Moves out the controller from the right of the screen like a navigation push
51 - (void)slideIn;
52
53 // Moves out the controller through the right of the screen like a navigation pop
54 - (void)slideOut;
55
56 // Perform a custom animation type on this controllers view.
57 // - "transition" is one of kCATransitionFade, kCATransitionMoveIn, kCATransitionPush, kCATransitionReveal
58 // - "direction" is one of kCATransitionFromRight, kCATransitionFromLeft, kCATransitionFromTop, kCATransitionFromBottom
59 - (void)animateWithType:(NSString*)transition direction:(NSString*)direction;
60
3a2dd4d @Squeegy Added helper kit and simplified and cleaned up some code base don it.
authored Feb 24, 2010
61 @end
Something went wrong with that request. Please try again.