Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 01-13-2009, 09:25 PM   #4 (permalink)
Duncan C
Cocoa Junkie
 
Duncan C's Avatar
 
Join Date: Dec 2008
Location: Northern Virginia
Posts: 4,813
Default

Quote:
Originally Posted by mpramodjain View Post
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
Duncan C is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 158,825
Threads: 89,207
Posts: 380,637
Top Poster: BrianSlick (7,129)
Welcome to our newest member, srishtimehta
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 02:40 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.