Put delegate methods into a category

后端 未结 2 1669
有刺的猬
有刺的猬 2021-02-12 15:09

I developed some application \'till now. Now I\'m writing a new one and in this project I want to keep the code very clean, so it\'s very easy to find the methods.
I want to

2条回答
  •  执念已碎
    2021-02-12 15:37

    Yes it is. The only thing to keep in mind with categories is that you cannot @synthesize properties in them. Adding ivars in categories is more difficult as well.

    See this for more info on that.

提交回复
热议问题