UIView tree vs CALayer tree
I'm curious, are there any advantages to using a tree of nested CALayers rather than a tree of nested UIViews for a straight boardgame with little animation? I noticed that Apple's GeekGameBoard sample uses nested CALayers and an open source library I've used in the past, Route Me, also relies on using CALayers directly. Just wondering what the typical scenarios are for choosing one method over the other.
CALayers are just bitmaps that you can move around the screen. UIViews have more to them, being UIResponder subclasses. Speed and memory usage are two reasons to use CALayers over UIViews when you don't need an onscreen object to respond to events.
Possibly Related Threads...
| Thread: | Author | Replies: | Views: | Last Post | |
| UIView opaque blending problems | Joecoolage | 0 | 3,045 |
Aug 2, 2010 12:58 AM Last Post: Joecoolage |
|
| UIView Subclass not displaying controls... | flipflop | 7 | 5,907 |
May 13, 2010 01:16 PM Last Post: flipflop |
|
| How to access EAGLView/UIView functions from C? | Rasterman | 10 | 5,150 |
Apr 8, 2010 10:47 AM Last Post: Rasterman |
|
| CALayer won't display | Paul from Boston | 1 | 2,813 |
Mar 26, 2010 09:08 AM Last Post: longjumper |
|
| CALayer drawLayer:inContext: | dcavanagh | 2 | 9,618 |
May 1, 2009 10:07 AM Last Post: dcavanagh |
|

