- 博客(3)
- 资源 (7)
- 收藏
- 关注
原创 两种方式给UIImage添加六边形边框
第一种方式: 注意:此种方式下,如果是滚动的列表就会出现卡顿的性能问题。代码如下: - (void)initWithTheItemsView { CAShapeLayer * shapLayer = [CAShapeLayer layer]; shapLayer.path = [self userImageViewBgVie
2017-02-21 19:00:09 2165
原创 给UIImage添加外边框圆
代码如下: - (UIImage *)addBorderToImage:(UIImage *)image { CGImageRef bgimage = [image CGImage]; float width = CGImageGetWidth(bgimage); float height = CGImageGetHeight(bgimage); //创建临时纹理
2017-02-14 15:46:22 1309
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人