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

Popular posts from this blog

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -