the result you've got from [messageDic objectForKey:@"myself"], which is a NSNumber, then you need to convert the result to Bool. So try below:
if ([[messageDic objectForKey:@"myself"]boolValue] == NO)
__NSCFBoolean is a private class that is used in NSNumber class cluster. To extract appropriate value from it you need to use methods from NSNumber class, -boolValue
in your case:
BOOL isMyself = [[messageDic objectForKey:@"myself"] boolValue];
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With