From iOS docs
For a custom shadow image to be shown, a custom background image must also be set using the backgroundImage property.