Difference between revisions of "CALayerHost"

From iPhone Development Wiki
Jump to: navigation, search
(Created page with "CALayerHost is a CALayer subclass which render another layers render context. Another thing it does is to allow touches to be passed directly to the process which is r...")
 
Line 1: Line 1:
[[CALayerHost]] is a [[CALayer]] subclass which render another layers render context. Another thing it does is to allow touches to be passed directly to the process which is running the layer it is showing. The touches aren't forwarded, they never get registered in the process running the [[CALayerHost]].
+
[[CALayerHost]] is a [[CALayer]] subclass which render another layer's render context. Another thing it does is to allow touches to be passed directly to the process which is running the layer it is showing. The touches aren't forwarded, they never get registered in the process running the [[CALayerHost]].
  
 
{{function signature
 
{{function signature

Revision as of 22:37, 28 November 2012

CALayerHost is a CALayer subclass which render another layer's render context. Another thing it does is to allow touches to be passed directly to the process which is running the layer it is showing. The touches aren't forwarded, they never get registered in the process running the CALayerHost.

Signature @property(assign) unsigned contextId;
Available in 2.0 –

Setting this property makes the CALayerHost display the context of the layer that has that contextId.

References