Tuesday 3 January 2012

Controllers

How to replace the current controller with a new one. In this case GameController


GameController *c = [[GameController alloc] initWithNibName:@"GameController" bundle:nil];
[self presentModalViewController:c animated:YES];
[c release];


For a navigatable version with back functionality:

[self.navigationController pushViewController:c animated:YES];

No comments:

Post a Comment