NSClassFromString returns nil

后端 未结 7 1613
礼貌的吻别
礼貌的吻别 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条回答
  •  我在风中等你
    2020-12-09 05:03

    You also need to make sure the class you are trying to instantiate is included in the project. If you added it later, you made need to click the checkbox next to the Target you are building.

提交回复
热议问题