Jeromiin
Jeromiin

Reputation: 71

asynchronous request of images by url for scrollview ios

I wanted to know how it is possible to make asynchronous request of images, and display them in a scroll view in a way that I can scroll the images without making requests for each images. I read some threads that gave me some ideas, so I think that I have to stock the urls in an array, and then I don't know what to do. If someone can explain to me ? or have a concrete idea on how to do this ?

Upvotes: 0

Views: 206

Answers (2)

Shubhendu
Shubhendu

Reputation: 1091

in order to load images asynchronously there are many options. The best approach is to create a different thread and fetch the url.

Sometimes its better to used tested and trusted apis available. I will suggest you to use SDWebImage

This will not only help you to load images asynchronously but also provides the caching mechanism. Which you will later or sooner user in you app development.

Its easy to use. Happy Coding :)

Upvotes: 0

veovo
veovo

Reputation: 189

NSScreencast has a video that does something similar. It is also a good video to learn about blocks too.

http://nsscreencast.com/episodes/10-fun-with-blocks

Upvotes: 1

Related Questions