 |
 |
|
 |
01-12-2009, 05:16 AM
|
#1 (permalink)
|
|
Mobile Application Dev.
Join Date: Oct 2008
Location: Bangalore
Posts: 175
Rep Power: 1
|
Downloading Images and text
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.
|
|
|
01-12-2009, 08:16 AM
|
#2 (permalink)
|
|
Lost in a sea of code
iPhone Dev SDK Supporter
Join Date: Apr 2008
Location: Boston
Posts: 368
Rep Power: 0
|
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.
|
have you considered a webview?
__________________
----------------------------------------------------------------------
I love being a dad, flying airplanes and writing code.
----------------------------------------------------------------------
Follow me on Twitter: @BostonMerlin
----------------------------------------------------------------------
iPhone Apps: The Pilots Library
|
|
|
01-12-2009, 09:12 AM
|
#3 (permalink)
|
|
Senior Member
Join Date: Aug 2008
Posts: 394
Rep Power: 1
|
Create a new thread to do the downloading so it doesn't stop interaction.
__________________
Super Pig
iOwn - Inventory anything and everything.
|
|
|
01-13-2009, 08:25 PM
|
#4 (permalink)
|
|
Member
Join Date: Dec 2008
Posts: 55
Rep Power: 1
|
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
|
|
|
 |
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
» Advertisements |
|
» Online Users: 265 |
| 26 members and 239 guests |
| amoll, bensj, BostonMerlin, crossfire, dapis, DGuy, Dracor, Groucho, heinrich, idigit, Jeremy1026, Jume, kaleman, lastiko, lildragon, mattjgalloway, mnemonic_fx, odysseus31173, Oliver Drobnik, Opticfibre, shabzcohelp, Sicga, tonylmiller, utopiaplan, williamlegate, wolkje |
| Most users ever online was 779, 05-11-2009 at 09:55 AM. |
» Stats |
Members: 8,229
Threads: 20,197
Posts: 90,213
Top Poster: RickMaddy (2,121)
|
| Welcome to our newest member, jrsiqueira |
|