How to save CALayer, CATiledLayer sublevel, zoom after scaling?

I have a CATiledLayer that is used to display a PDF page (this CATiledLayer is the layer type of my UIView, which is a subdivision of UIScrollView). I want to add overlay labels on this page. Therefore, I am adding a sublevel to my CATiledLayer. This sublevel again places different marker levels and acts as a grouping layer.

So graphically, I have: (remember that I have several markers that are also CALayers, this is the art of ascii)

pdf page (CATiledLayer)
----------------------
|  CALayer           |
|  +---------+       |
|  |  +----+ |       |
|  |  |mker| |       |
|  |  +----+ |       |
|  +---------+       |
|                    |
----------------------

I created a canonical drawLayer: inContext: in my opinion, for drawing pdf.

, , PDF- , . , CALayer, .

, , , . ? ? CALayer drawLAyer: inContext: message?

, , , . , .

+3
1

, . CALayer, , , CATiledLayer.

+1

Source: https://habr.com/ru/post/1748765/


All Articles