绘制阴影:
CAGradientLayer *gradient = [CAGradientLayer layer];
gradient.frame = CGRectMake(0,SCREEN_WIDTH/16.0*10.0*0.7,SCREEN_WIDTH, SCREEN_WIDTH/16.0*10.0*0.3);//16:10的图片
gradient.colors = [NSArray arrayWithObjects:(id)RGBA(0,0,0,0).CGColor,//阴影开始的透明度
(id)RGBA(0, 0, 0, 0.5).CGColor,
(id)RGBA(0, 0, 0, 1).CGColor,nil]; //这是阴影最深的透明度
[imgView.layer insertSublayer:gradient atIndex:0];