CALayerHost

From iPhone Development Wiki
Revision as of 12:29, 4 November 2013 by Eswick (talk | contribs) (Added info on how touches are delivered)
Jump to: navigation, search

CALayerHost is a CALayer subclass which renders another layer's render context. It allows touches to be passed directly to the process in which the layer is displaying. Touches are delivered to backboardd by IOKit, which then calls the current CAWindowDisplayServer's -contextIdAtPosition: method to retrieve the context ID that the touches should be sent to.

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