@interface...
BOOL nameIsValid;
@property (nonatomic) BOOL nameIsValid;
@implementation...
@sysnthesize nameIsValid;
-(void)someMethod {
nameIsValid = YES;
}
-(void)anotherMethod {
if(nameIsValid){
...
}
}
Why does my if statement always evaluate to FALSE, even after the someMethod is called?