Flatten CALayer sublayers into one layer

前端 未结 2 2054
予麋鹿
予麋鹿 2021-01-03 12:36

In my app I have one root layer, and many images which are sublayers of rootLayer. I\'d like to flatten all the sublayers of rootLayer into one layer/image, that don\'t have

2条回答
  •  遥遥无期
    2021-01-03 12:58

    Do you still want the layer to be interactive? If not, call -renderInContext: and show the bitmap context.

提交回复
热议问题