The function that makes your image appear with a rounded corner is the one that hides the shadow: [layer setMasksToBounds: YES] . What you can do is put your ImageView in a UIView view, which acts like a container providing a shadow.
Thus, the code may look like this (I just typed it, did not compile it, though)
marcus
source share