received data from JSON, which is looks like:
{ myself = 1; \"id\" = 123; }
and I put it into a NSDictionary *messageDic, I also define
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)