将
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; self.window.rootViewController = [[MHSlidingManager sharedInstance] getSideViewController]; self.window.backgroundColor = [UIColor whiteColor]; [self.window makeKeyAndVisible]; return YES; }
改为
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; // self.window.rootViewController = [[MHSlidingManager sharedInstance] getSideViewController]; self.window.backgroundColor = [UIColor whiteColor]; MHBaseNavigationController *baseNav = [[MHBaseNavigationController alloc] initWithRootViewController:[[MHBaseContentViewController alloc] init]]; self.window.rootViewController = baseNav; [self.window makeKeyAndVisible]; return YES; }