添加阴影效果

 1 @implementation ICSDropShadowView
 2 
 3 - (void)drawRect:(CGRect)rect
 4 {
 5     self.layer.shadowOffset = CGSizeZero;
 6     self.layer.shadowOpacity = 0.7f;
 7     
 8     UIBezierPath *shadowPath = [UIBezierPath bezierPathWithRect:self.bounds];
 9     self.layer.shadowPath = shadowPath.CGPath;
10 }

设置阴影效果

posted @ 2015-02-07 10:25  myFisland  阅读(142)  评论(0编辑  收藏  举报