The file that ends in ".h" is the Header or Interface file for the class. The one that ends in ".m" is the Main or Implementation file for the class.
还是别看翻译版了吧,英文原版:http://www.cocoalab.com/?q=node/14
本文介绍了 Objective-C 中类文件的基本概念,区分了以 .h 结尾的头文件(Header 或 Interface 文件)和以 .m 结尾的主要实现文件(Main 或 Implementation 文件)。.h 文件通常包含公共接口声明,而 .m 文件则包含了类的具体实现细节。
The file that ends in ".h" is the Header or Interface file for the class. The one that ends in ".m" is the Main or Implementation file for the class.
还是别看翻译版了吧,英文原版:http://www.cocoalab.com/?q=node/14
606
3462

被折叠的 条评论
为什么被折叠?