-(void)NewButton
{
ApplianceViewController *VC = [[ApplianceViewController alloc] initWithNibName:@"ApplianceViewController" bundle:[NSBundle mainBundle]] ;
NSLog(@"Retain count before pushViewController:%d",VC.retainCount);//prints1
[self.navigationController pushViewController:VC animated:YES];
NSLog(@"Retain count after pushViewController:%d",VC.retainCount);//prints 7
[VC release];
NSLog(@"Retain count after Release:%d",VC.retainCount);// prints 6
}
私のコードでは、保持カウントが異常に増加します。私は多くの時間を費やしました。助けてください。