Can a single CALayer be used as the mask for multiple other layers?

前端 未结 2 522
忘掉有多难
忘掉有多难 2021-01-12 11:58

I can\'t find anything in the docs that indicates whether a single CALayer (or subclass) can be used as the mask property for multiple other layers. Is it possi

2条回答
  •  日久生厌
    2021-01-12 13:01

    My experimentation says that it cannot. It will end up as the mask for the last layer it is attached to, and any previous layers it was assigned as a mask to, will revert to the default value of mask.

提交回复
热议问题