What is the most relevant and best way to update data on an iOS device from a – CSV file on a remote server that receives values every second?
The file receives data every second and this data is to be updated. Currently im using an NSURLRequest and NSURLConnection to read the file for every 10seconds. Instead is there any other way I can update the device on the new data? like webservices?
What is the most relevant and best way to update data on an iOS
Share
either your current approach and web services are pulling data from the source on repeatable manner, which is fine if it’s not a time-critical solution.
however, if you need a “push” feature, which means clients get called immediately after new data is available, you may consider using socket programming. You may want to check out the wonderful framework CocoaAsyncSocket on github