【发布时间】:2011-05-08 16:46:52
【问题描述】:
我应该为 varSecondViewController 使用释放还是自动释放?
-(IBAction)takeNextStep: (id) sender
{
SecondViewController *varSecondViewController = [[SecondViewController alloc]
initWithNibName:@"SecondViewController" bundle:nil];
[self.navigationController pushViewController:varSecondViewController animated:YES];
[varSecondViewController release];
}
【问题讨论】:
标签: iphone objective-c cocoa memory