1

I am working on my first iOS app and looking for the best way to implement the communication channel between iOS client and the server. Basically, I need to have a background thread that would send updates to the server say every 5 minutes.

From what I googled so far I think I would need to use some combination of NSOperation and NSOperationQueue for background processing; also NSTimer for scheduling; and NSURLConnection for sending the update to server.

Does that sound about right? If somebody can point me to an example of how that might look like I would greatly appreciate it.

Thanks!

4

0 回答 0