iPhone app getting XML then refreshing it at intervals...

Posted by user157733 on Stack Overflow See other posts from Stack Overflow or by user157733
Published on 2010-05-19T18:48:54Z Indexed on 2010/05/19 19:10 UTC
Read the original article Hit count: 168

Filed under:
|
|
|

I have an app which gets some data from the web via an XML document. I have this working fine and have followed apples SeismicXML example (uses NSURLRequest etc). I am very new to this so I have to admit that I do not totally understand all the code that gets the XML - but it is working. My problem is that my app may be running for some time so I want to be able to refresh the XML every now and again and check to see if it is different. If it is different I need to update my contents. Basically this means my questions are....

  1. Is there a standard way of doing this?
  2. I was thinking of creating a timer to call the function which parses the XML but I can't figure out which function to call.

If anyone can give me any pointers or even better examples of this it would be fab. Thanks

© Stack Overflow or respective owner

Related posts about iphone

Related posts about Xml