Dynamic class creation in Objective-C


Dynamic class creation in Objective-C



Is there an equivalent of selectors for classes? How can I create a instance of a class from a string?




How do you get the viewport scale after pinch/zoom on an iPhone web app?

1:



asp.net Mobile implementation on IPhone, Blackberry and other mobile devices
You want NSClassFromString..
Using an Objective-C++ file from a C++ file
NSString *theClassForMe = @"NSMutableArray"; id newObject = [[NSClassFromString(theClassForMe) alloc] init]; 


Saving a string into file in Objective-C (iPhone)


50 out of 100 based on 15 user ratings 640 reviews