Levels & Achievements Saving States When App is Closed

Can anyone point me in the right direction, I have this all working up until the point where it needs to save states when the App is closed. Where or how would I go on doing this.
In Xcode I would use an database.
Thanks,
-ADK
In Xcode I would use an database.
Thanks,
-ADK
Comments
Thanks
I save at the end of every level, if the user quites mid level, that level is not saved.
Send and Receive Data using your own Server Tutorial! | Vote for A Long Way Home on Steam Greenlight! | Ten Years Left