IOS: create a UIImage or UIImageView with rounded corners

后端 未结 12 753
执笔经年
执笔经年 2020-12-07 07:26

Is it possible create an UIImage or an UIImageView with rounded corners? Because I want take an UIImage and show it inside an UI

12条回答
  •  借酒劲吻你
    2020-12-07 08:11

    It is possible but I'll advice you to create transparent png image (mask) with round corners and place it over you image with UIImageView. It might be quicker solution (for example if you need animations or scrolling).

提交回复
热议问题