Commit 63e1297b authored by 汪洋's avatar 汪洋

Merge branch 'GMRefreshBugFix' into 'master'

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



See merge request !1
parents 9ce5da0a 3899dd6d
......@@ -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