iphone - How to load images in UIScrollView asynchronously? -
hi,
i getting images using json
, need display image @ time when app running please tell me how use asynchronous method load images uiscrollview
?
thanks.
whether use uitableview or uiscrollview, use same pattern, have bit more plumbing uiscrollview. use uitableview unless want roll own multi-column image thumbnail picker.
with uiscrollview, need create own virtual rows , columns , detect when scrollview has scrolled new row or new column view. need queue (remove) images have scrolled out of view, , load images have come view. in all, not trivial code.
the uitableview (rows only, no concept of columns)
having said that.. here reference using nsoperation class lazy load images uitableview while giving user smooth experience..
Comments
Post a Comment