Hei, I'm rather new to objective C and I don't call myself a programmer but a creative coder (someone who makes things work, I don't care so much about elegancy of my solutions ;) ). I have the following problem to solve: My app takes photos and stores them in the apps documents directory. It sends these images to a custom database. Working fine so far.
Some test-users have requested to capture their photos offline and whenever they open the app again and internet connection is available it would send the images to the database. Now I've found the quite easy way to test whether there is internet connection available here: How to check for an active Internet connection on iOS or OSX?
works fine so far. Next I'm wondering how I'd best save the images that need to be sent whenever no internet connection is available. I'm using NSUserDefaults in my app already. Would it be an easy solution to save the names/paths of the images that need to be sent using NSUserDefaults and read them when the app is opened and send all the images at that time?
or can someone recommend another easy way to do it? Suggestions welcome!