I have a UIViewController that I wish to push onto the stack, however, when I call [viewController release]
on it after I push it, any time I pop it off of the stack however, I get various errors pertaining to deallocated instances of the view controller. Here is an example of an implementation:
RootViewController *rootViewcontroller = [[RootViewController alloc] initWithNibName:@"RootViewController"
bundle:nil];
[self.navigationController pushViewController:rootViewController animated:YES];
[rootViewController release];