首页 > 其他 > 详细

添加阴影效果

时间:2015-02-07 11:35:21      阅读:202      评论:0      收藏:0      [点我收藏+]
 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 }

设置阴影效果

添加阴影效果

原文:http://www.cnblogs.com/fisland/p/4278449.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!