I have set a bool value for key TCshow in my NSUserDefault, I want to run a nslog test whether the key is saved or not, and i m trying to printout the bool value. here is my cod
if([self.storedKey boolForKey:@"TCshow"]){ NSLog(@"YES"); } else{ NSLog(@"NO"); }
I think it will be helpful to you.