简体   繁体   中英

Web image display in iPhone app

I am new to developing on the iPhone so am sorry if this is an easy question, but it has had me stumped for a little while.

Basically the app displays data retrieved from an XML feed. In that feed is an element that contains the path to an image. eg http://www.myserver.com/myimage.jpeg .

I want to be able to display that image in the list view of my iPhone app.

Most importantly, I don't want to stop the list drawing for each image, the rest of the data should be displayed immediately and then each image downloads and displays as quickly as data speed etc make it available.

What is the best way of downloading that image and displaying it?

Ideally can someone point to some working example code.

Thanks Stephen

Displaying the image: you could create a UIWebView and just point it to the path - and then it's fully zoomable too.

Displaying in the list view:

//Somehow download your image...
cell.image = Your Image

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM