阅读背景:

iPhone:从任何比例(变换)级别定位到图像上的某个点

来源:互联网 

I have a simple UIImageView with an image that is larger then the display (600x1400). The image starts with Fit to Aspect, so the bounds of the UIImgageView report 320x750, still larger then the display, but that's OK. I know of a point (300, 150) relative to the original dimensions of image (600x1400) that I want to scale and position to. If I setup a basic animation to handle the position and scale (zoom, transform) via core animation, the scale happens, but I never end up at the point I want. Instead, it appears I have to calculate the point based on the scale I WILL be at once transformed.I have a simple UIImageView with an image that




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: