liuzhiyi1992/ZYCornerRadius

项目中大部分的圆角都正常 只有一个地方一直不正常

BoYangZuo opened this issue · 1 comments

for (int i = 0; i< count; i++) {
    UIImageView *imageView = [[UIImageView alloc]initWithImage:imageList[i]];   
    [imageView zy_cornerRadiusAdvance:2.0 rectCornerType:UIRectCornerAllCorners];
    imageView.frame = CGRectMake((width + 10*ScaleScreenH)*i, 10*ScaleScreenH, width, height);
    [self addSubview:imageView];
}

这样初次加载不显示圆角 得来回加载几次才正常显示圆角 请问是什么问题呢?

因为setImage的操作在- zy_cornerRadiusAdvance配置UIImageView之前,建议修改成- zy_cornerRadiusAdvance后,再setImage操作