I have an application which accesses a SOAP web service in order to download some of its data. My problem is I need to perform this on a fairly regular basis. Currently the user presses an ‘update’ button in order to download the data, but I would like it to be done without the user needing to press a button.
What would be the best approach to take in this situation?
So long as your downloading is already set up, it seems like all you need is to use an
NSTimer. For example, if you wanted it to trigger the download every thirty seconds you would put this line in:And you would have a function like
And if you are done with the downloads, within the
doDownloadfunction, you would callto shut off the timer.