NSEnumerator *enumerator = [iArray objectEnumerator];
id object;
while ((object = [enumerator nextObject])) {
NSLog(@"Class Name: %@",[object className]);
NSLog(@"Is member of NSString:%s",[object isMemberOfClass:[NSString class]] ? "YES":"NO");
NSLog(@"Is kind of NSString:%s",[object isKindOfClass:[NSString class]] ? "YES":"NO");
NSLog(@"Responds to lowercaseString:%s",[object respondsToSelector:@selector(lowercaseString)] ? "YES":"NO");
NSLog(@"======================================");
}
id object;
while ((object = [enumerator nextObject])) {
NSLog(@"Class Name: %@",[object className]);
NSLog(@"Is member of NSString:%s",[object isMemberOfClass:[NSString class]] ? "YES":"NO");
NSLog(@"Is kind of NSString:%s",[object isKindOfClass:[NSString class]] ? "YES":"NO");
NSLog(@"Responds to lowercaseString:%s",[object respondsToSelector:@selector(lowercaseString)] ? "YES":"NO");
NSLog(@"======================================");
}