UIImageView inherits from UIView so it has a CALayer. Among the CALayer properties that you can manipulate is the shadow and border. The trick is to set the border to few pix thick and drop some shadow radius and you instantly get a nice photo frame effect.
So if you want to turn a boring looking photo (like the below) into something that look like it's in a photo frame with some drop shadow, do this:
// #import <QuartzCore/QuartzCore.h> // picture is an instance of UIImageView CALayer *layer = picture.layer; [layer setBorderColor: [[UIColor whiteColor] CGColor]]; [layer setBorderWidth:8.0f]; [layer setShadowColor: [[UIColor blackColor] CGColor]]; [layer setShadowOpacity:0.9f]; [layer setShadowOffset: CGSizeMake(1, 3)]; [layer setShadowRadius:4.0]; [picture setClipsToBounds:NO];
I have made a handy category to apply this photo frame effect to any UIImageView easily here.