I might be going mad here, but previously when using a BOOL I would do something like this :
BOOL myBool
if (myBool) {
NSLog@"My Bool is YES";
}
I.e I would assume that if myBool is equivalent to saying if myBool is YES.
Under iOS7 though I am seeing the log statement trigger even when the value of myBool is never explictily set. If it is set to NO or YES the code behaves as expected.
Has something changed here under iOS7 ?
EDIT
Just to add that this moment of madness was caused but the fact that I had been elsewhere initialising BOOLs from NSUserDefaults boolForKey method, which will return NO if no value is found for that key.