Memory handling problem with UIViewController and pushViewController

Posted by Infinity on Stack Overflow See other posts from Stack Overflow or by Infinity
Published on 2010-04-29T09:44:22Z Indexed on 2010/04/29 9:47 UTC
Read the original article Hit count: 195

Filed under:
|
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?

© Stack Overflow or respective owner

Related posts about objective-c

Related posts about iphone-sdk