How can I add shadow to a circle UIImageView or UIView?

前端 未结 6 2061
迷失自我
迷失自我 2020-12-25 13:31

I am trying to make a circle UIImageView, and it works. Below is the way I use to make it:

[self.pic.layer setMasksToBounds:YES];
[self.pic.laye         


        
6条回答
  •  长情又很酷
    2020-12-25 13:48

    I might be a bit late.

    You can easily set the required attributes on the storyboard attribute inspector.

    The result would be something like this.

提交回复
热议问题