I want to convert a string to a class name. Imagine that I have a string, which changes, containing a class name, for example, the string \"MyExampleClass\". No
\"MyExampleClass\"
id a = [[NSClassFromString(@"MyExampleClass") alloc] init];
use this one this will give you what you want.