ios 跳转xib控制器

if (self.viewController == nil) self.viewController = [[MainViewController alloc] initWithNibName:@"MainViewController" bundle:nil]; UINavigationController *navRoot = [[UINavigationController alloc] initWithRootViewController:self.viewController]; self.window.rootViewController = navRoot;

你可能感兴趣的:(ios 跳转xib控制器)