UIView的投影設(shè)置主要通過(guò)UIView的layer的相關(guān)屬性來(lái)設(shè)置
陰影的顏色:imgView.layer.shadowColor = [UIColor blackColor].CGColor;
陰影的透明度:imgView.layer.shadowOpacity = 0.4f;
陰影的圓角:imgView.layer.shadowRadius = 4.0f;
陰影偏移量:imgView.layer.shadowOffset = CGSizeMake(0,0);//Defaults to (0, -3). Animatable.