Home News Forum Social Networking Support Us Advertise

Spanish Lesson 1 ($1.99)

aWake!Gently ($1.99)

The Bird & The Snail - Knock Knock - Deluxe ($4.99)

Match-It Trains ($0.99)

Tangled ($0.99)

iFlatter ($0.99)

The 15 puzzle ($0.99)

Tap Forms Database ($8.99)

Higher or Lower Card Game (Hi Lo) ($0.99)

Red Pixel ($0.99)

Time-Shift Radio ($0.99)

Want your application advertised here? Only $10/week!

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 01-12-2009, 05:16 AM   #1 (permalink)
Mobile Application Dev.
 
Join Date: Oct 2008
Location: Bangalore
Posts: 175
Rep Power: 1
mpramodjain is on a distinguished road
Default 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.
mpramodjain is offline   Reply With Quote
Old 01-12-2009, 08:16 AM   #2 (permalink)
Lost in a sea of code
iPhone Dev SDK Supporter
 
BostonMerlin's Avatar
 
Join Date: Apr 2008
Location: Boston
Posts: 368
Rep Power: 0
BostonMerlin is an unknown quantity at this point
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.
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
BostonMerlin is online now   Reply With Quote
Old 01-12-2009, 09:12 AM   #3 (permalink)
Senior Member
 
Join Date: Aug 2008
Posts: 394
Rep Power: 1
detz is on a distinguished road
Default

Create a new thread to do the downloading so it doesn't stop interaction.
__________________
Super Pig
iOwn - Inventory anything and everything.
detz is offline   Reply With Quote
Old 01-13-2009, 08:25 PM   #4 (permalink)
Member
 
Join Date: Dec 2008
Posts: 55
Rep Power: 1
Duncan C is on a distinguished road
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
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


» Advertisements


» Stats
Members: 8,229
Threads: 20,197
Posts: 90,213
Top Poster: RickMaddy (2,121)
Welcome to our newest member, jrsiqueira
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 02:23 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0