Getting an object’s class name… and back!

February 10, 2013 in iOS Snippets


NSString *className = NSStringFromClass([obj class]);

Class class = NSClassFromString(className);