iOS image-图片设置圆角实质上是重绘图片
此代码用于实现UIImage圆角,而不是UIImageView圆角,UIImageView圆角可以直接通过如下实现 imageView.layer.cornerRadius = radius; imageView.layer.masksToBounds = YES;
|
iOS image-图片设置圆角实质上是重绘图片
此代码用于实现UIImage圆角,而不是UIImageView圆角,UIImageView圆角可以直接通过如下实现 imageView.layer.cornerRadius = radius; imageView.layer.masksToBounds = YES;
|