I am used to have this in my code
myClass.h
myClass.m
this is a result from console
I thought var A should be nil then. So my question is what does blue line do and why var A is not nil after all
myClass.h
Code:
@property ( strong, nonatomic ) ClassA *varA
myClass.m
Code:
[COLOR="Blue"]varA = [[ClassA alloc] init];[/COLOR]
if ( varA isEqual:nil )
NSLog@"var A is nil");
else
NSLog@"var A is not nil");
this is a result from console
Code:
var A is not nil