Extra retain counts after initWithNibName

Posted by optimisticmonkey on Stack Overflow See other posts from Stack Overflow or by optimisticmonkey
Published on 2010-05-24T03:20:11Z Indexed on 2010/05/24 3:31 UTC
Read the original article Hit count: 214

Filed under:
|

I have extra retain counts after calling initWithNib. What could cause this? (There are no referencing outlets in the nib)

StepViewController *stepViewController = [[StepViewController alloc] initWithNibName:@"StepViewController" bundle:nil];
[self.navigationController pushViewController:stepViewController animated:YES];
[stepViewController release];
NSLog(@"nextStep stepViewController retain count %i", [stepViewController retainCount]);

the above results in a retain count of 3...

Thanks for any advice on how to troubleshoot

© Stack Overflow or respective owner

Related posts about objective-c

Related posts about cocoa