I have one UINavigationController
that I use like this:
DetailsViewController *controller = [DetailsViewController alloc] init];
[self.navigationController pushViewController:controller animated:YES];
[controller release];
Of course this code works well.
The problem: when I send the popViewControllerAnimated:
to the UINavigationController
, the DetailsViewController
it is removed from the stack, but it is not released if there is no animation occurring. (That is, dealloc
is not called, and the DetailsViewController
remains with a retainCount
of 1).
Does anyone have any idea of what's happening here?
Is the animated
parameter being used improperly?