NSClassFromString returns nil

后端 未结 7 1614
礼貌的吻别
礼貌的吻别 2020-12-09 04:28

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

7条回答
  •  猫巷女王i
    2020-12-09 04:52

    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.

提交回复
热议问题