Replace existing XML file within iPhone app

Posted by Chonch on Stack Overflow See other posts from Stack Overflow or by Chonch
Published on 2010-05-13T07:24:27Z Indexed on 2010/05/13 7:44 UTC
Read the original article Hit count: 225

Filed under:
|
|

Hey,

I have an .xml file that is going to be shipped within my app. This file contains values that are read from it and saved as an array when the app launches.

Each time the app is run, I want to check with the server if there is an internet connection. If so, I want to get the newest version of the .xml file from the server and replace the one that I currently have saved in my app (this way, the next time the user logs in and doesn't have internet access, he/she will be able to use the old (yet most up to date) data).

What is the best way to do this?

Thanks,

© Stack Overflow or respective owner

Related posts about iphone

Related posts about Xml