Is there a way to print value of Boolean flag in NSLog?
//assuming b is BOOL. ternary operator helps us in any language. NSLog(@"result is :%@",((b==YES)?@"YES":@"NO"));