Lazy loading subspecies in non-page UIScrollView

I am trying to implement a UIScrollView-like filmstrip that will be populated with thumbnails of catalog pages. Selecting a thumbnail will cause the main UIScrollView to move to the selected page. The catalog can contain 100 - 200 pages, and I want to download them lazily only when necessary.

I did this in a UIScrollView with paging enabled, but I did not see anything better to do this in a script without paging. In UIScrollView (+ 1 when viewing scrolling), 6 thumbnails will be displayed at any given time. I want to remove and reuse the UIView sketch when the view scrolls, as I basically do with a UIScrollView (which is a scroll view of a search call).

Thank -

Jk

+3
source share
3 answers

Check out the sample sprollview scroll code from apple. The tile example can probably be easily reconfigured.

http://developer.apple.com/library/ios/#samplecode/ScrollViewSuite/

+2
source

I am also going to suggest you take a look at the sample Apple code, i.e. Photo Scroller. If you are a registered iOS developer, you should also watch a WWDC10 session on scroll views in iPhone apps.

http://developer.apple.com/library/ios/#samplecode/PhotoScroller/Listings/main_m.html

, ( , UIScrollView). , , - . , , .

, .

+7

Check out this class .. it might be useful ..

Vsscroller

0
source

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


All Articles