means of capturing image of CATiledLayer

Originator:codesorcery
Number:rdar://10806831 Date Originated:2/3/12
Status:Closed Resolved:
Product:iPhone SDK Product Version:5.0
Classification:Enhancement Reproducible:Always
 
Summary:

Since the deprecation of UIGetScreenImage(), there is no method to capture an image of a CATiledLayer-backed view as seen by the user. 

Normal views can be asked to have their CALayer renderInContext:, but CATiledLayers do not produce an image in the context. 

Steps to Reproduce:

Try to have a CATiledLayer renderInContext. 

Expected Results:

Valid bitmap image data. 

Actual Results:

Empty image data. 

Regression:

N/A

Notes:

See DTS incident 190345508.

Comments

Engineering has provided the following feedback regarding this issue:

-renderInContext: draws tiled layers by calling their -drawInContext: method, so it sounds like your draw method is not working correctly in this case.

By codesorcery at May 24, 2012, 6:27 p.m. (reply...)

Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!