ITeye博客

用UIBezierPath给view添加阴影

zani · 2012-12-17 10:55 · UIView · 移动开发 · Markdown

bgForListView.layer.shadowOffset = CGSizeZero;

        bgForListView.layer.shadowRadius = 10.0f;

        bgForListView.layer.shadowOpacity = 1.0f;

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

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。