我正在尝试这样做,使用注释行效果很好,没有,当我从“推送”视图返回时,我的应用程序崩溃了......我什么时候应该[释放]?或者,更好的是,我这样做是正确的?
if (indexPath.row == 1) {
Credits *cr = [[Credits alloc] initWithNibName:@"Credits" bundle:nil];
[self.navigationController pushViewController:cr animated:YES];
//[cr release];
}else{
Search *sr = [[Search alloc] initWithNibName:@"Search" bundle:nil];
[self.navigationController pushViewController:sr animated:YES];
//[sr release];
}