Creating a shadow for a UIImageView that has rounded corners?
If you set clipsToBounds to true, this will round the corners but prevent the shadow from appearing. In order to resolve this, you can create two views. The container view should have the shadow, and its subview should have the rounded corners. The container view has clipsToBounds set to false, and has the shadow properties … Read more