Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Rinceart

macrumors newbie
Original poster
Mar 21, 2015
2
0
Hi all,

I am trying to create an image viewer similar to the standard iOS photo app, using nested UIScrollViews for zooming. Everything works fine, however I want my images to go back to their original size when I scroll away from them, but cannot seem to make it work with zoomToScale: animated: (for some reason it only works when I come back to the image not when I leave it).

I explained my problem in more detail in this stackOverflow thread and would really appreciate if someone with more experience than I could help me.

Thanks,
- R.

http://stackoverflow.com/questions/32135309/ios-image-viewer-set-zoomed-image-back-when-scrolling
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.