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 > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 01-12-2009, 06:16 AM   #1 (permalink)
Mobile Application Dev.
 
Join Date: Oct 2008
Location: Bangalore, india
Posts: 362
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, 09:16 AM   #2 (permalink)
Lost in a sea of code
 
BostonMerlin's Avatar
 
Join Date: Apr 2008
Location: Boston
Posts: 399
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
Feed your brain on Twitter: @iPhoneDev101
----------------------------------------------------------------------
iPhone Apps:
BostonMerlin is offline   Reply With Quote
Old 01-12-2009, 10:12 AM   #3 (permalink)
New Member
 
Join Date: Aug 2008
Posts: 394
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, 09:25 PM   #4 (permalink)
Cocoa Junkie
 
Duncan C's Avatar
 
Join Date: Dec 2008
Location: Northern Virginia
Posts: 4,811
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 online now   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: 158,763
Threads: 89,201
Posts: 380,572
Top Poster: BrianSlick (7,129)
Welcome to our newest member, mineva2kul
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 09:49 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0