【问题标题】:Transforming UIImageView pixelates the UIImageView image in iPad转换 UIImageView 像素化 iPad 中的 UIImageView 图像
【发布时间】:2014-02-25 04:59:58
【问题描述】:

我正在使用以下代码转换 imageView,它可以正常工作,但会使图像像素化。

 CABasicAnimation *animation=[CABasicAnimation animationWithKeyPath:@"transform.rotation.z"]

  animatation.fromValue=[NSNumber numberWithDouble:0];


  animation.toValue=[NSNumber numberWithDouble:0.05];
  animation.fillMode=KCAFillModeForwards;
  animation.cumalative=YES;
  animation.additive=NO;
  animation.repeatCount=1;
  animation.removedOnCompletion=NO;
  animation.duation=0.0;
  [needleImageView.layer.anchorpoint=CGPointMake(1,1)];
  [needleImageView.layer addAnimation:animation forKey:@"transform"];

使用上面的代码它会转换图像,但它会像素化图像。谢谢

【问题讨论】:

  • 将锚点更改为 UIImageview 框架之外..
  • @iMani 你能解释一下这个改变 UIImageView 框架之外的锚点吗?

标签: ios iphone uiimageview transform uiviewanimation


【解决方案1】:

你用的是哪款ipad?如果您使用的 ipad 没有 视网膜显示屏,那么它会在转换时像素化。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2011-05-11
    • 2019-08-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-02-03
    • 2012-09-25
    相关资源
    最近更新 更多