Is there an equivalent of selectors for classes? How can I create a instance of a class from a string?
1 Answer
You want NSClassFromString.
NSString *theClassForMe = @"NSMutableArray";
id newObject = [[NSClassFromString(theClassForMe) alloc] init];