How to make a circular UIView

前端 未结 7 1514
伪装坚强ぢ
伪装坚强ぢ 2020-11-28 04:05

I want to make a UIView or UIImageView that is a circle. Or a circle that i can change the size of using a slider, and the color of with a pickerview.

7条回答
  •  情书的邮戳
    2020-11-28 04:16

    No need for graphics calls. Just set the corner radius to the width / 2. This can be done on any visual object ie UI element

提交回复
热议问题