title: How do I get class information at runtime in Objective-C?
body: <p>I have NSMutableArray with different objects in it of different classes. Now I want to get the class name, related stuff and also check if the respective object is NSString or not. How should I go about it?</p>
  
  <p>I was trying something like the following. It wasn't working of course.</p>
  
  <pre><code>for(NSString *string in array){
      NSLog(@"Name of the class : %@", [NSString stringWithCString:class_getName(Class id)];
  </code></pre>