尝试使用CAGradientLayer时编译错误 [英] Compile error trying to use CAGradientLayer
问题描述
我正在尝试使用CAGradientLayer并获得无用的编译错误。无法弄清楚什么是错的。到目前为止,我所做的就是:
I'm trying to use CAGradientLayer and getting an unhelpful compile error. Can't figure out whats wrong. All I'm doing so far is:
CAGradientLayer *gradient = [CAGradientLayer layer];
我已导入< QuartzCore / QuartzCore.h>
我收到警告>
I've imported <QuartzCore/QuartzCore.h>
and I'm getting the warning >
_OBJC_CLASS_ $ CAGradientLayer引自:objc-class-ref-to-CAGradientLayer symbol (s)未找到。
_OBJC_CLASS_$CAGradientLayer referenced from: objc-class-ref-to-CAGradientLayer symbol(s) not found.
我已经尝试过清洁和构建,但没有运气,我似乎无法瞄准除了4.1 in Xcode
I've tried clean and build but no luck and I can't seem to target anything other than 4.1 in Xcode
为任何帮助干杯。
推荐答案
你没有没有正确地将 QuartzCore
框架添加到您的项目中:
You didn't correctly add the QuartzCore
framework into your project:
这篇关于尝试使用CAGradientLayer时编译错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!