Objective-C Category Causing unrecognized selector

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

    I had the same issue and had to apply this fix as well. My NSDate-Extensions.m source file wasn't compiling so I had to go into Project Settings, then select the appropriate target, then click the "Build Phases" tab, then expand the "Compile Sources" items, then click the + symbol and manually add my NSDate-Extensions.m file.

提交回复
热议问题