I need to get the class object out of a string, containing the name of the class at runtime. I found a function called objc_getClass, but I’m not sure if it’s really what I search.
Can I implement it like this? NSString *name = @’AnyClass’; Class *myClass = objc_getClass([name UTF8String]);
I believe the function you’re looking for is:
which lets you do: