Skip to content

Instantly share code, notes, and snippets.

@casspangell
Created May 8, 2012 19:17
Show Gist options
  • Save casspangell/2638605 to your computer and use it in GitHub Desktop.
Save casspangell/2638605 to your computer and use it in GitHub Desktop.
Instantiating a Nib of Another Class
//Create the pointer to the view you want to become the current
LoginWindow *loginViewController = [[LoginWindow alloc] initWithNibName:@"LoginWindow~iphone" bundle:nil];
//Change current view to the new one
self.window.rootViewController = loginViewController;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment