Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #import "VSAppDelegate.h"
- @implementation VSAppDelegate
- #pragma mark - Lifecycle
- - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
- {
- [Crashlytics startWithAPIKey:@"93***********************2d"];
- self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
- self.window.rootViewController = [self rootController];
- [self.window makeKeyAndVisible];
- return YES;
- }
- #pragma mark - Controllers
- - (PKRevealController *)rootController {
- NSDictionary *options = @{ PKRevealControllerRecognizesPanningOnFrontViewKey:[NSNumber numberWithBool:NO] };
- return [PKRevealController revealControllerWithFrontViewController:[self frontController]
- leftViewController:[VSStarredStatusesViewController sharedInstance]
- rightViewController:[[Vkontakte sharedInstance] authenticateController]
- options:options];
- }
- - (UINavigationController *)frontController {
- MBPullDownController *pullDownController = [[MBPullDownController alloc] initWithFrontController:[VSStatusesViewController sharedInstance]
- backController:[VSCategoriesViewController sharedInstance]];
- pullDownController.closeDragOffset = 45.0f;
- pullDownController.closedTopOffset = 45.0f;
- pullDownController.openBottomOffset = 45.0f;
- UINavigationController *navigationController = [[UINavigationController alloc] initWithRootViewController:pullDownController];
- navigationController.navigationBarHidden = YES;
- return navigationController;
- }
- @end
Advertisement
Add Comment
Please, Sign In to add comment