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 35 user ratings 310 reviews