I have a simple mobile app for ios. The app contains 2 text fields and a submit button. I have written so that data input into the fields is saved to MySQL db. It works fine as long is there is network coverage but of course when there is none you can't save the data. My question is how can I save this data locally then upload when network coverage is available?