I'm trying to set a color scale for my view's background, after some research I've found this thread : Gradients on UIView and UILabels On iPhone
But when I add the following line :
CAGradientLayer *gradient = [CAGradientLayer layer];
I get this :
"_OBJC_CLASS_$_CAGradientLayer", referenced from: clang: error: linker command failed with exit code 1 (use -v to see invocation)
What is this error ? And how to solve it ?