Why does NSClassFromString return nil ? As per the definition it has to return class name. How should I take care to rectify this problem? I need t
NSClassFromString
nil
This happened to me when I add an external file to the Xcode project. Adding the .m file to Build Phases > Compile Sources solve the problem.