Best practise/methods to download images/news/text/data from remote site?

Hi,

I’m writing an iOS business app and rather than hard code certain things, like prices, news etc I want to download these as the app starts from a remote web site.

What the best/easiest/most flexible way to do this?

If you could please provide actual examples I can use it would be greatly appreciated.

THANKS!!

This is a rather broad scoped question.  How I would go about downloading images vs. how I would get news items, prices is different.  Also a lot depends on how and where that data is stored on the server.  For instance, news would likely be in a content management system and be accessed via RSS feeds, where as images you would probably download directly from the web server, and prices might come from a database.

Until we know more about the data, it’s going to be hard to offer suggestions.  You might want to start by looking at the network.request() and network.download() API calls.  Look at JSON encoding and decoding.  There is an RSS module is the community code.

This is a rather broad scoped question.  How I would go about downloading images vs. how I would get news items, prices is different.  Also a lot depends on how and where that data is stored on the server.  For instance, news would likely be in a content management system and be accessed via RSS feeds, where as images you would probably download directly from the web server, and prices might come from a database.

Until we know more about the data, it’s going to be hard to offer suggestions.  You might want to start by looking at the network.request() and network.download() API calls.  Look at JSON encoding and decoding.  There is an RSS module is the community code.