3

我有一个由两个 UIImageViews 组成的 UIView。它们是同心圆形状。当我像这样缩小这个视图时:

CABasicAnimation *resizeAnimation = [CABasicAnimation animationWithKeyPath:@"transform.scale"];
    resizeAnimation.fromValue = [NSNumber numberWithDouble:1.0];
    resizeAnimation.toValue = [NSNumber numberWithDouble:0.25];
    resizeAnimation.fillMode = kCAFillModeForwards;
    resizeAnimation.removedOnCompletion = NO;

当按比例缩小时,图像的边缘会变得粗糙和像素化。我能做些什么来防止这种情况发生或至少将其最小化吗?

4

1 回答 1

0

尝试将图像视图的图层 minificationFilter 设置为 kCAFilterNearest 或 kCAFilterTrilinear

于 2015-06-17T14:37:06.560 回答