-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCLCascadeNavigationController.h
executable file
·65 lines (51 loc) · 1.63 KB
/
CLCascadeNavigationController.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
54
55
56
57
58
59
60
61
62
63
64
65
//
// CLCascadeNavigationController.h
// Cascade
//
// Created by Emil Wojtaszek on 11-05-06.
// Copyright 2011 __MyCompanyName__. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "CLCascadeView.h"
@class CLViewController;
@interface CLCascadeNavigationController : UIViewController <CLCascadeViewDataSource, CLCascadeViewDelegate> {
// array of all view controllers
// todo: in ios5 use childViewControllers
NSMutableArray* _viewControllers;
// view containing all views on stack
CLCascadeView* _cascadeView;
}
/*
List of CLViewControllers on stock.
*/
@property (nonatomic, strong, readonly) NSMutableArray* viewControllers;
/*
* Left inset of normal size pages from left boarder
*/
@property(nonatomic) CGFloat leftInset;
/*
* Left inset of wider size page from left boarder. Default 220.0f
*/
@property(nonatomic) CGFloat widerLeftInset;
/*
* Set and push root view controller
*/
- (void) setRootViewController:(CLViewController*)viewController animated:(BOOL)animated;
/*
* Push new view controller from sender.
* If sender is not last, then controller pop next controller and push new view from sender
*/
- (void) addViewController:(CLViewController*)viewController sender:(CLViewController*)sender animated:(BOOL)animated;
/*
First in hierarchy CascadeViewController (opposite to lastCascadeViewController)
*/
- (UIViewController*) rootViewController;
/*
Last in hierarchy CascadeViewController (opposite to rootViewController)
*/
- (UIViewController*) lastCascadeViewController;
/*
Return first visible view controller (load if needed)
*/
- (UIViewController*) firstVisibleViewController;
@end