You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5ed692f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NO,it's haven't solve the left black problem yet .
5ed692f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
UITabBarController *centerTabBarCtl = [[UITabBarController alloc] init];
centerTabBarCtl.viewControllers = _viewControllers;
centerTabBarCtl.tabBar.hidden = YES;
UIView *transtionView = [self.centerTabBarCtl valueForKey:@"_viewControllerTransitionView"];
transtionView.frame = [[UIScreen mainScreen] bounds];
[self.centerTabBarCtl.view bringSubviewToFront:transtionView];
UIViewController *leftController = [[UIViewController alloc] init];
UINavigationController *leftNav=[[UINavigationController alloc] initWithRootViewController:leftController];
self.drawerController = [[MMDrawerController alloc] initWithCenterViewController:centerTabBarCtl leftDrawerViewController:leftNav];
self.drawerController.delegate = self;
[self.drawerController setMaximumLeftDrawerWidth:224.0];
[self.drawerController setOpenDrawerGestureModeMask:MMOpenDrawerGestureModeAll];
[self.drawerController setCloseDrawerGestureModeMask:MMCloseDrawerGestureModeAll];
self.window.rootViewController = self.drawerController;
self.window.backgroundColor = [UIColor whiteColor];
[self.window makeKeyAndVisible];
return YES;
}