简体   繁体   English

如何在iOS5 / XCode 4.3中导入QuartCore?

[英]How to import QuartCore in iOS5/XCode 4.3?

In iOS4 I used the following import statement 在iOS4中,我使用了以下导入语句

#import <QuartzCore/QuartzCore.h>

Now in iOS5 in XCode 4.3 even though the QuartzCore.framework is included when I type in 现在在iOS5中使用XCode 4.3,即使当我输入QuartzCore.framework时也是如此

#import <

only QuartzCore is displayed in the intellisense whereas QuartzCord/QuartzCore.h was displayed previously. 在智能感知中仅显示QuartzCore,而先前显示QuartzCord / QuartzCore.h。 If I type in the full definition everything works fine. 如果我输入完整的定义,则一切正常。

Is this a bug or has the import definition changed in iOS5/XCode 4.3? 这是错误还是iOS5 / XCode 4.3中的导入定义已更改?

EDIT: Just installed XCode 4.3.1 and have the same problem w/ several frameworks. 编辑:刚安装XCode 4.3.1,并具有几个框架的相同的问题。

是的,这就是新的xcode.Type #import <QuartzCore/QuartzCore.h> ,它工作正常。

如果我在项目设置中包括QuartzCore.framework (左侧栏中的顶部条目= Project Navigator-> Targets-> BuildPhases-> Link Binary with Library),我可以输入#import <QQuartzCore/QuartzCore.h>通过IntelliSense。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM