Why does NSClassFromString return nil ? As per the definition it has to return class name. How should i take care to rectify this problem. since i need to instantiate a class from string and call the method which is in the class using the instance created.
This is how my code looks like.
id myclass = [[NSClassFromString(@"Class_from_String")alloc]init];
[myclass method_from_class];
but the method_from_class function is not being called,control is not going into it.and my code is error free.any idea me how to solve this in Objective-C.?