I have an class, and in the header I define this:
@interface MyViewController : UIViewController {
BOOL blackBackground;
}
@property(nonatomic, assign) BOOL blackBackground;
In the implementation I have the @synthesize for blackBackground.
Then, I instantiate this object and do:
[myViewController setBlackBackground:YES];
now that boolean should have the value YES (or true ;) ). But then, I check:
if ([myViewController blackBackground]) {
NSLog(@"yep, it's true");
}
however, it doesn't seem to respond or return anything, either the value doesn't get set or I can't call/check it. Any idea what's wrong there?