-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathUINavigationControllerX.h
53 lines (42 loc) · 2.01 KB
/
UINavigationControllerX.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
//
// UINavigationControllerX.h
//
// Copyright (c) 2014 Anthony Shoumikhin. All rights reserved under MIT license.
// mailto:[email protected]
//
#import <UIKit/UIKit.h>
@interface UINavigationController (X)
/**
Animates push action with custom CoreAnimation transitions.
@param viewController A controller to push.
@param type CATransition type constant.
@param subtype CATransition subtype constant.
*/
- (void)pushViewController:(UIViewController *)viewController withTransitionType:(NSString *)type subtype:(NSString *)subtype;
- (void)pushViewController:(UIViewController *)viewController withTransitionType:(NSString *)type;
/**
Animates pop action with custom CoreAnimation transitions.
@param viewController A controller to push.
@param type CATransition type constant.
@param subtype CATransition subtype constant.
@return The view controller that was popped from the stack.
*/
- (UIViewController *)popViewControllerWithTransitionType:(NSString *)type subtype:(NSString *)subtype;
- (UIViewController *)popViewControllerWithTransitionType:(NSString *)type;
/**
Animates pop to root view controller action with custom CoreAnimation transitions.
@param type CATransition type constant.
@param subtype CATransition subtype constant.
@return An array of view controllers representing the items that were popped from the stack.
*/
- (NSArray *)popToRootViewControllerWithTransitionType:(NSString *)type subtype:(NSString *)subtype;
- (NSArray *)popToRootViewControllerWithTransitionType:(NSString *)type;
/**
Animates pop to view controller action with custom CoreAnimation transitions.
@param type CATransition type constant.
@param subtype CATransition subtype constant.
@return An array of view controllers representing the items that were popped from the stack.
*/
- (NSArray *)popToViewController:(UIViewController *)viewController withTransitionType:(NSString *)type subtype:(NSString *)subtype;
- (NSArray *)popToViewController:(UIViewController *)viewController withTransitionType:(NSString *)type;
@end