Looping UIScrollView Horizontal

I want to loop around the UIScrollView, but not like most of this loop views the list of views, only one that scrolls through one of the views, but moves smoothly around it.

Essentially, I'm trying to make the map look like I can zoom in and out and keep scrolling around and around.

Anyone have any tips?

+2
source share
1 answer

I played with the same problem a while ago and hacked a quick demonstration of one solution. I'm not sure that viewing a map, which can be built from many fragments, will be easier or harder to manage.

https://github.com/jonah-carbonfive/WrappingScrollView

, .

  • , , . " ".
  • UIScrollView. , (. , ).
  • .
  • "" UIImageView, , , . UIImageViews, , .
  • , , , , , .
  • -scrollViewDidScroll: , , , , , , .
  • ! . - . , -hitTest:withEvent:, , , , super. .
  • , .

, UIViews UIControls .


, , , . , , , . , UIScrollView, , . , . , . UIScrollView; , , , .

+4

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


All Articles