Hi, I have a custom view controller that I push onto my navigation stack as follows:
myViewController *myVC = [[myViewController alloc] init];
[myVC generate:myData];
[self.navigationController pushViewController:myVC animated:YES];
the code runs fine, but when checking for memory leaks I get a warning that myVC is never released.
adding a release statement
[myVC release];
in line 4 compiles fine, but crashes in execution. How do I need to handle this?