Objective-C Category Causing unrecognized selector

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

    Another possibility.

    You have the implementation of category but do not have an interface. I mean you forgot to declare in *.h the interface of your category.

提交回复
热议问题