File tree 1 file changed +17
-1
lines changed
FRLayeredNavigationControllerDemo
1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change 30
30
31
31
#import " MainViewController.h"
32
32
33
+ #import " SampleListViewController.h"
34
+
35
+ // Wheather to demo size changes or not...
36
+ // #define DEMO_SIZE_CHANGES
37
+
33
38
@implementation AppDelegate
34
39
35
40
@synthesize window = _window;
@@ -40,9 +45,20 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
40
45
// Override point for customization after application launch.
41
46
self.window .backgroundColor = [UIColor whiteColor ];
42
47
48
+ #ifdef DEMO_SIZE_CHANGES
43
49
MainViewController *vc = [[MainViewController alloc ] init ];
44
50
self.window .rootViewController = vc;
45
-
51
+ #else
52
+ UIViewController *vc = [[SampleListViewController alloc ] init ];
53
+ FRLayeredNavigationController *fvc = [[FRLayeredNavigationController alloc ]
54
+ initWithRootViewController: vc
55
+ configuration: ^(FRLayeredNavigationItem *item) {
56
+ item.width = 200 ; // 600;
57
+ item.nextItemDistance = 64 ; // 2;
58
+ }];
59
+ self.window .rootViewController = fvc;
60
+ self.window .backgroundColor = [UIColor scrollViewTexturedBackgroundColor ];
61
+ #endif
46
62
[self .window makeKeyAndVisible ];
47
63
48
64
return YES ;
You can’t perform that action at this time.
0 commit comments