Objective-C Category Causing unrecognized selector

后端 未结 7 732
误落风尘
误落风尘 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

    Yet another possibility:

    This is almost too embarrassing to admit, but just in case someone might have done the same silly mistake:

    I was copying code from one project to another, and by mistake I had pasted the same source code in the .h file and the .m file (in both I had put the code meant for the .h file). I fixed my .m file and it worked.

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