Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- UIWindow *window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
- self.window = window;
- UIViewController *rootcontroller = [[UIViewController alloc] init];
- CGRect frame = [[UIScreen mainScreen] applicationFrame];
- rootcontroller.view.frame = frame;
- FrontViewController *frontViewController = [[FrontViewController alloc] init];
- RearViewController *rearViewController = [[RearViewController alloc] init];
- UINavigationController *navigationController = [[UINavigationController alloc] initWithRootViewController:frontViewController];
- SWRevealViewController *revealController = [[SWRevealViewController alloc] initWithRearViewController:rearViewController frontViewController:navigationController];
- revealController.delegate = self;
- self.viewController = revealController;
- self.window.rootViewController = rootcontroller;
- [rootcontroller.view addSubview:self.viewController.view];
- [self.window makeKeyAndVisible];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement