Can't compile code when working with CALayer

Solutions Collect From Internet About “Can't compile code when working with CALayer”

Make sure you also add the QuartzCore framework to your target. Just importing the header isn’t enough.

XCode Screenshot
enter image description here