Hi
I was watching the videos from WWDC 2010 and have now started to dig in to the functionality of the Build and Analyze tool in xcode 3.2. It's a great tool that will highlight coding mistakes (specially for a newcomer like me!) even if they may not have an impact during runtime.
But there is one thing I would need some help to understand.
When I push a new view controller with this code:
SettingsViewController *nextController = [[SettingsViewController alloc] initWithNibName:@"SettingsViewController" bundle:nil];
My_AppAppDelegate *delegate = [[UIApplication sharedApplication] delegate];
[delegate.myNavController pushViewController:nextController animated:YES];
The analyzer tells me there is a potential memory leak. I can understand that in a way, as I allocate the NextController but never release it. But if I try to release it, my app crashes.
I dont get any leaks when analyzing with Instruments on the simulator and physical device.
Would Apple stop this app or would it go through their testing?