Tag Archives: core graphics

CALayer Internals: Contents

It’s right there in the CALayer documentation: contents An object that provides the contents of the layer. Animatable. @property(retain) id contents Discussion A layer can set this property to a CGImageRef to display the image as its contents. The default value is nil. There’s … Continue reading

Posted in Explanation | Tagged , , , | 1 Comment

CALayers v. CGLayers, or, Which Layer, Player?

What’s the Deal? An evergreen source of confusion for developers new to graphics on iOS is the existence of multiple Apple-provided graphics frameworks, and multiple “layer” objects within those frameworks.  We’re told to use Core Animation for compositing and animation, … Continue reading

Posted in Explanation | Tagged , , , | 2 Comments