In an attempt to create a workaround for centering the image in UIScrollView and make it behave like an Apple Photos application, I need to get the current zoom level and use it to calculate the amount that the image should be inserted into each zoom level.
(Note: I know that some programmers center the image in scrollview by centering the image in a UIView that is the same size as scrollview. This does not give good results, and I'm trying to figure out how apple made it work in the photo application. )
So, does anyone know how to get the current level of content scaling in UIScrollView?
iphone center uiscrollview zoom
Jonah
source share