Theocacao
Leopard
Design Element
Comment on "Core Animation Isn't Just for Animation"
by Alex Reynolds — Nov 02
I have an application that draws a one-bit (two-color) bitmap. It uses one layer drawn in a 320x480 UIView, by translating an CGLayerRef from point to point, across all columns and rows (something like an old typewriter).

To move it up one row, I clip 320x479 pixels from the existing UIView and draw the next 320x1 row. Its performance is okay.

Would CALayers work better? Is there a good demonstration app or sample code for using CALayer objects with the iPhone SDK?
Back to "Core Animation Isn't Just for Animation"
Design Element

Copyright © Scott Stevenson 2004-2015