I am looking for the way to write an effect like the image above (from the Groupon app) for a view. Using the code below, I tried to get a shadow going, but it's not working. The effect I am looking for is the view getting darker from top to bottom. Can anybody tell me what I've done wrong, and how to get closer to the effect Groupon gets?
view.layer.shadowColor = [[UIColor blackColor] CGColor];
view.layer.shadowRadius = 8.0f;
view.layer.shadowOpacity = 0.75f;
UIBezierPath *path = [UIBezierPath bezierPathWithRoundedRect:view.bounds cornerRadius:4.0];
view.layer.shadowPath = path.CGPath;