How to scroll and scale large images on iPhone?

I have a large image about 30000 (w) x 6000 (h) pixels in size. You can consider it a big card. I guess I need to assemble it into smaller tiles. Questions:

  • What are the rights ViewControllersto use?
  • ( link ) what is the tile strategy? (I put this in another question, since this is not an iPhone)

Requirements:

  • the whole image (although cropped) can be scrolled up / down / left / right using swipes
  • increase (from pixel to pixel) (up to the screen in height) using the two-finger operation.
  • memory efficiency with lazy loading plates

Bonus Requirements:

  • auto scroll, say left to right slowly and smoothly

Thank!

+3
source share
1 answer

Check out part 3 of the Apple ScrollViewSuite sample example for how to do this.

+2
source

Source: https://habr.com/ru/post/1743100/


All Articles