Load XML file on seperate thread, overwrite old , and save.
Posted
by Luis Tovar
on Stack Overflow
See other posts from Stack Overflow
or by Luis Tovar
Published on 2010-03-27T06:48:28Z
Indexed on
2010/03/27
6:53 UTC
Read the original article
Hit count: 334
iphone
|iphone-sdk-3.0
Hey everyone... so Im trying to figure out how to do this. I have bounced around alot of forums to try and find my answer, but no success. Either their process it too complicated for me to understand, or is just overkill. What I am trying to do is this. I have an XML file within my app. Its a 500k xml file that i dont want the user to have to wait on when loading. SO... I put it in my app which kills the load time, and makes the app available offline. What i want to do is, when the app loads, in the background (seperate thread) download the SAME xml file which MIGHT be updated with new data. Once the xml file is complete, i want to REPLACE the xml file that was used to load the file. Any suggestions or code hints would be greatly appreciated. Thanks in advance!
© Stack Overflow or respective owner