Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 Eclipse 中,我很少需要手动导入文件,因为它能够使用键盘快捷键自动解析导入。这在 Xcode 中可用吗?
这是否意味着自动添加正确的#import 行?
没有。
另一方面,Cocoa 代码往往只是拉入世界。至于系统头文件,只需要 <Cocoa/Cocoa.h> 是很正常的,它已经在模板 Xcode 中用于新文件。您可以在项目中使用前缀标头来覆盖您自己的标头。