iphone - #import "xxx"和#import <xxx> 有什么区别?

标签 iphone objective-c ios ipad

<分区>

Possible Duplicate:
What is the difference between #include <filename> and #include “filename”?
Difference between writing #import <filename.h> and #import “filename.h” i.e written the file name in angular brackets and quotes?

这可能是个愚蠢的问题。 #import <QuartzCore/QuartzCore.h> 之间有什么区别?和 #import "QuartzCore/QuartzCore.h" ? (大于/小于与双引号)

它们似乎都有效。

最佳答案

一般来说 #import "QuartzCore/QuartzCore.h"表单是“查找我自己的标题,如果找不到它,请查找系统标题”,<QuartzCore/QuartzCore.h>表单是“查找系统标题”。理论上,这些位置是编译器定义的,它们可以在给定平台上以不同方式实现,但我还没有遇到执行任何不同操作的 C 编译器。

关于iphone - #import "xxx"和#import <xxx> 有什么区别?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8424188/

相关文章:

iPhone AVAudioRecorder 进入后台后暂停问题

ios - 覆盖 UICollectionView 子类中的委托(delegate)和数据源 setter

iOS UITableView 单元格缩进

ios - 如何使用 Sprite Kit Physics 创建一个 "cross"(或 "plus")形状的旋转对象?

ios - 如何检查 UIView 是否仍然存在?

ios - 如何在 iOS SDK 中使用自动布局管理复杂的 View 层次结构

iphone - 在 Objective-C 中发布 ivars

iphone - 将 Twitter 与 sharekit 2.0 集成

iphone - iPhone 中的封面流

iphone - 有关 typedef 枚举的帮助