zooming

How do I reset after a UIScrollView zoom?

久未见 提交于 2019-11-26 17:03:08
I have a Graph being drawn inside a UIScrollView . It's one large UIView using a custom subclass of CATiledLayer as its layer. When I zoom in and out of the UIScrollView , I want the graph to resize dynamically like it does when I return the graph from viewForZoomingInScrollView . However, the Graph redraws itself at the new zoom level, and I want to reset the transform scale to 1x1 so that the next time the user zooms, the transform starts from the current view. If I reset the transform to Identity in scrollViewDidEndZooming , it works in the simulator, but throws an EXC_BAD_ACCSES on the

How to find absolute position of click while zoomed in

99封情书 提交于 2019-11-26 15:28:15
问题 Please see each section below for a description of my problem described in three separate ways. Hopefully should help people to answer. Problem: How do you find a pair of coordinate expressed in canvas/userspace when you only have the coordinate expressed in terms of a zoomed image, given the original scale point & scale factor? Problem in practice: I'm currently trying to replicate the zoom functionality used in apps such as the gallery / maps, when you can pinch to zoom/zoom out with the

Borders disappear in Chrome when I zoom in

我怕爱的太早我们不能终老 提交于 2019-11-26 12:29:28
问题 I have this really simple form: http://jsfiddle.net/TKb6M/91/. Sometimes, when I zoom in or out using Chrome, the input borders disappear. For example, when I zoom to 90% I get: Naturally, your mileage may vary. In case you\'re wondering about those <span> tags, I added them following the recommendation at How do I make an input element occupy all remaining horizontal space?. Is there a problem with my CSS or is this a Chrome bug? It seems to work fine on Firefox. What can I do to avoid this