How to draw a shape on top of a UIImage while respecting the image's alpha mask

前端 未结 4 1658
隐瞒了意图╮
隐瞒了意图╮ 2021-01-31 12:29

I need a UIImageView that can draw itself in color or b/w according to a flag:

  BOOL isGrey;

I\'m trying to do it by drawing a black rectangle

4条回答
  •  灰色年华
    2021-01-31 13:19

    I'd take the easy way out and draw a black circle with the same size as the round image you have. Probably not what you are asking for.

提交回复
热议问题