Can't set cornerRadius AND shadow on layer that has an image view stretched to its bounds?

前端 未结 5 717
醉话见心
醉话见心 2020-12-31 03:00

This is stumping me. I have a UIView (call it \"parent\"). The bottommost subview of that view is a UIImageView (call it \"child\"), whose frame occupies the entirety of the

5条回答
  •  北海茫月
    2020-12-31 03:44

    Have you tried setting the bounds of the child UIImageView so that it also has rounded corners? Perhaps then it wouldn't override the shadow of the container view. Just a thought, not sure if it will work.

提交回复
热议问题