-(IBAction)gameplayButtonClicked{
GamePlayViewController *screen3 = [[GamePlayViewController alloc] initWithNibName:nil bundle:nil];
screen3.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
[self presentModalViewController:screen3 animated:YES];
[screen3 release];
}
答案 0 :(得分:1)
当你调用presentModalViewController:animated:screen3 VC将被推送到视图层次结构并保留在那里。完成模态VC后,应调用dismissModalViewControllerAnimated:,这将从视图层次结构中释放它。
答案 1 :(得分:0)
没有泄漏。确保将项目设置设置为debug。