Skip to content

Instantly share code, notes, and snippets.

@ginrou
Last active December 22, 2015 03:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ginrou/6414007 to your computer and use it in GitHub Desktop.
Save ginrou/6414007 to your computer and use it in GitHub Desktop.
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
// vc1をrootにしてUINavigationControllerの初期化
UIViewController *vc1 = [[UIViewController alloc] init];
UINavigationController *nc = [[UINavigationController alloc] initWithRootViewController:vc1];
// vc2で切り替える
UIViewController *vc2 = [[UIViewController alloc] init];
[nc setViewControllers:@[vc2]];
return YES;
}
@kiyotakagoto
Copy link

thx !!!!!!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment