NSNumber* n = [[NSNumber alloc] initWithInt:100]; NSNumber* n1 = n;
In the code above, why is the value of n\'s retainCount set to 2? In the second
I think you have something else going on...
NSNumber* n = [[NSNumber alloc] initWithInt:100]; NSNumber* n1 = n; NSLog(@"n = %i",[n retainCount]);
Result is 1