How to round corners of UIImage with Hexagon mask

前端 未结 4 1511
轻奢々
轻奢々 2020-11-28 10:21

I\'m trying to add a hexagon mask to a UIImage which I has been successful in. However I am unable to round the sides of the hexagon mask. I thought adding cell.profilePic.l

4条回答
  •  离开以前
    2020-11-28 10:48

    Maybe you have to round the corners of the border and the mask, rather than of the image view?

    hexagonMask.cornerRadius = hexagonBorder.cornerRadius = 10.0;
    

提交回复
热议问题