in AppDelegate

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {   
   
  // Override point for customization after application launch.
 MenuControllerView *_menuControllerView=[[MenuControllerView alloc] init];
 UINavigationController *_rootNavigationController=[[UINavigationController alloc] initWithRootViewController:_menuControllerView];
 [_rootNavigationController setNavigationBarHidden:YES];
 
 [window addSubview:_rootNavigationController.view];
    [window makeKeyAndVisible];

    return YES;
}

你可能感兴趣的:(delegate)