Solid Shadow in All Directions
问题 I've been looking for a way to set the shadow property of a layer, like this: where the light blue is the layer—the UIImageView in this instance—and the dark blue is the shadow. I'd like the shadow to do things: Appear on all four sides: accomplished by setting shadowOffset to CGSizeMake(0.0, 0.0) and making shadowRadius nonzero Be entirely opaque: accomplished by setting shadowOffset to a specific point in the layer and shadowRadius to zero I already have shadowOpacity set to zero, but I can