NSLog(@"retain count 1 for show detail -- %d",[showDetail retainCount]);
ChecklistDetail *detail = [appDelegates.arrayForChecklistDetails objectAtIndex:[sender tag]];
self.showDetail = detail;
NSLog(@"retain count 2 for show detail -- %d",[showDetail retainCount]);
Here, in the above code, output of the first nslog is "retain count 1 for show detail -- 0", which is correct. However, the output of the second nslog comes as following "retain count 2 for show detail -- 2".
How does its retain count go upto 2?
help me if u can....