I am a newbie to iOS. I have a requirement where I need to fetch data from a local database and upload it to a server. This has to be done in the background when the internet connection is available. How can I proceed on this? I need a kick start.
I read that I can achieve this with help of NSThread, or GCD, but I don't get when each of those is most suitable. Can someone suggest the right way? A sample or pseudocode would help a lot.