NSClassFromString returns nil

后端 未结 7 1419
礼貌的吻别
礼貌的吻别 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:17

    If you are trying to instantiate a class from a static library, you must add the "-ObjC" flag to the "Other Linker Flags" build setting.

    0 讨论(0)
提交回复
热议问题