用UIBezierPath给view添加阴影

        bgForListView.layer.shadowOffset = CGSizeZero;

        bgForListView.layer.shadowRadius = 10.0f;

        bgForListView.layer.shadowOpacity = 1.0f;

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

猜你喜欢

转载自zani.iteye.com/blog/1748881
今日推荐