Hello,
I am building an image viewer using UIScrollView and UIImageView as content. Everything works fine besides the fact that, when zoomed out, the content is shown in the top left corner of the scroll view. Instead I would like it to be shown in the center, similar to the Photos application on the iPhone.
I tried various things but could not get it to work (content mode, edge insets, ...).
Any ideas how this could be done?
I am building an image viewer using UIScrollView and UIImageView as content. Everything works fine besides the fact that, when zoomed out, the content is shown in the top left corner of the scroll view. Instead I would like it to be shown in the center, similar to the Photos application on the iPhone.
I tried various things but could not get it to work (content mode, edge insets, ...).
Any ideas how this could be done?