Hi All,
I'm trying to log if an object in my mutable array is a member of the class NSString
. Here is my code:
id obj = [mutArr objectAtIndex:1];
BOOL classMem = [obj isMemberOfClass:[NSString class]];
NSLog(@"%@", classMem);
Instead of printing YES
or NO
, I get the output (null)
. Can you please tell me why this is the case?
Thank you!!