ios5 - UIScrollView. How Can I Tell Zoom Out From Zoom In? -
on ios have uiscrollview subclass. during zoom gesture need distinguish zoom-out zoom-in. best way this?
thanks,
doug
in uiscrollviewdelegate's scrollviewwillbeginzooming:withview:, store current zoomscale of uiscrollview; compare stored value zoomscale in scrollviewdidendzooming:withview:atscale: determine if zoom in or zoom out. if value has increased, zoom in; otherwise, zoom out.
Comments
Post a Comment