当我进行转换时 UIButton 背景图像显示参差不齐的一面
我的代码在这里:
int r = arc4random() % 20 - 10;
avatarImgBtn.transform = CGAffineTransformMakeRotation(degreesToRadian(r));
titleImgBtn.transform = CGAffineTransformMakeRotation(degreesToRadian(r));
title.transform = CGAffineTransformMakeRotation(degreesToRadian(r));
avatarImgBtn.layer.borderWidth = 3;
avatarImgBtn.layer.borderColor = [UIColor clearColor].CGColor;
avatarImgBtn.layer.shouldRasterize = YES;
我怎样才能做到正确。请帮我。提前致谢!!!