Is it possible to create an instance of a class by name? Something like:
NSString* className = @"Car";
id* p = [Magic createClassByName:className];
[p turnOnEngine];
I don't know if this is possible in objective-c but seems like it would be,
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…