目前发现这个问题:打印frame发现变成这样了:imageView.frame = {x = 0,y = 0,width = 1000,height = 1000}
原始做法
imageView.layer.cornerRadius = imageView.frame.size.width/2;
imageView.layer.masksToBounds = YES;
现在发现失效 了。
imageView.layer.cornerRadius = imageView.image.size.width/2;
imageView.layer.masksToBounds = YES;
虽有目前可以解决,但是有一个前提(图片比例必须是)
我的二维码
- 微信公众号,不定期分享代码经验