To give a shadow effect to UIImageView Try entering the code below.
1) #import <QuartzCore/QuartzCore.h> in .h file
2) To give a shadow effect to Cell UIImageView
mediaImage.layer.shadowColor = [UIColor blackColor].CGColor;
mediaImage.layer.shadowRadius = 10.f;
mediaImage.layer.shadowOffset = CGSizeMake(0.f, 5.f);
mediaImage.layer.shadowOpacity = 1.f;
mediaImage.clipsToBounds = NO;
source
share