Quote:
Originally Posted by mpramodjain
Hi,
Do anyone know, how to download images and text content from the server. I have to display the images and text content at a time , downloaded from the server and update it every time.
I had used synchronous connection to download images , but it stops the UI to be scrolled and interactions by the user are not getting responded. My application requires updation of the image and context for every 15-20 secs,
Do any one have any idea.
|
If your images come from a web server, you can use the class NSURLConnection to start asynchronous downloads into your app's temp directory. Once the download is complete you load the image from the file into memory, install the image into a UIIMageView, and send a -setNeedsDisplay method to the view.
Regards,
Duncan C
WareTo