100

老生常谈category增加属性的几种操作 | JungHsu's Blog

 6 years ago
source link: https://www.junghsu.top/2017/12/07/%E8%80%81%E7%94%9F%E5%B8%B8%E8%B0%88category%E5%A2%9E%E5%8A%A0%E5%B1%9E%E6%80%A7%E7%9A%84%E5%87%A0%E7%A7%8D%E6%93%8D%E4%BD%9C/?
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
前言 日常开发中,为一个已有的类(比如说不想影响其文件结构)、第三方库提供的类增加几个property,已经是十分常见且需要的操作了,有人会单独起草一份category.m文件,也有人直接继承,像我一般会用category,一是能减少类文件的数量提高编译速度,二也是为了代码结构更加清晰。 这篇文章

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK