Commit 3899dd6d authored by wangjun's avatar wangjun

修正下拉刷新图片缩放比例

parent 9ce5da0a
......@@ -76,9 +76,10 @@
// pullingPercent 超过 1 时,位置固定
self.gifView.hidden = NO;
CGFloat translation = self.mj_h * 1 / 2;
CGFloat scale = MIN(1.0, pullingPercent);
_prepareImageView.transform = CGAffineTransformMakeTranslation(0, -translation);
_prepareImageView.transform = CGAffineTransformScale(_prepareImageView.transform, pullingPercent, pullingPercent);
_prepareImageView.transform = CGAffineTransformScale(_prepareImageView.transform, scale, scale);
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment