I’m currently trying to create objects from the NSClassFromString(NSString *) method.
What I want to be able to achieve is the following…
NSClassFromString(stringType) *pageController = nil;
Instead of the following…
UIViewController *pageController = nil;
So in other words, instead of using a UIViewController, I want to use the correct class. I want to be able to achieve the above without having to type the exact class.
I would normally write it like the following, but due to expansion of the application, it needs to change.
MPLandscapeImage *pageController = nil;
Is this possible and if so, how can I complete what is needed?
Yes. Do this.