I have a program in which I want to flip a BOOL value without doing this:
@property (nonatomic, assign) BOOL *boolValue;
if (boolValue == YES) {
boolValue = NO;
}
if (boolValue == NO) {
boolValue = YES;
}
Is there a method I can use to switch the value without using this way?