Memory handling problem with UIViewController and pushViewController
- by Infinity
MyViewController *myViewController = [[MyViewController alloc] initWithMagInfo:magInfo];
[self.navigationController pushViewController:myViewController animated:YES];
[myViewController release];
The MyViewController class is an UIViewController. And the problems come in his dealloc method at the line
[super dealloc];
Why can it happen?