首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 移动开发 > 移动开发 >

用UIBezierPath给view增添阴影

2012-12-23 
用UIBezierPath给view添加阴影? ? ? ??bgForListView.layer.shadowOffset CGSizeZero? ? ? ? bgForList

用UIBezierPath给view添加阴影

? ? ? ??bgForListView.layer.shadowOffset = CGSizeZero;

? ? ? ? bgForListView.layer.shadowRadius = 10.0f;

? ? ? ? bgForListView.layer.shadowOpacity = 1.0f;

? ? ? ? bgForListView.layer.shadowPath = [UIBezierPath bezierPathWithRect:bgForListView.bounds].CGPath;

热点排行