I was wondering if i could create a object of some class if i have the name of the class
in a NSString.
I know this is possible in other languages like ActionScript, C# and PHP...
Something like this:
NSString *className = @"AwesomeViewController";
UIViewController *object = [[className alloc] initWithNibName:className bundle:nil];
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…