Notice that for importing class header files that are not frameworks, the header file name is in quotes rather than the angle brackets used for importing frameworks (as was done in the header file). The difference between quotes and brackets is that quotes instruct the preprocessor to start looking for the file within the same directory as the current implementation file. Since framework files are stored elsewhere, the angle brackets tell the preprocessor to skip the current directory.
Notice when we improt files in Objective-C
最新推荐文章于 2022-02-25 18:19:43 发布
本文探讨了在编程中导入不同类型的文件时使用引号与尖括号的区别。引号用于从当前实现文件所在的目录开始查找文件,而尖括号则指示预处理器跳过当前目录,通常用于导入框架文件。
586

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



