Objective-C Category Causing unrecognized selector

后端 未结 7 746
误落风尘
误落风尘 2020-12-01 02:52

My project has a UIImage category function that I want to call from another class. I properly import the header file for the image category and I get the projec

7条回答
  •  眼角桃花
    2020-12-01 03:18

    If you want to use Category method, you must add -ObjC to the Other Linker Flags build setting of your APP.

提交回复
热议问题