NSCoding And NSFileManager Tutorial For Easy File Saving
There are many different ways to save data on iOS devices, but for simple apps a heavy solution like a Core Data or SQL database is just a waste of time. Even saving to a plist file may be overdoing it.
This is where NSCoding and NSFileManager come in, NSCoding allows you to encode and decode class instances, and NSFileManager allows you to save and read the file to disk. I’ve had e-mails asking me “how to I save to a .plist” file and this tutorial shows how to do just that.
What I really like about this tutorial is that while these two classes are often touched upon, this tutorial really goes in depth, and shows you everything that you need.
The tutorial is from Ray Wenderlich, the creator of the Space Game Starter Kit and co-author of the Learning Cocos2D book, and covers saving and loading of both data and images in an app using NSCoding and NSFileManager, it can be found here:
How To Save Your App Data With NSCoding and NSFileManager
Thanks for reading, please share this using the buttons below!
Submit A Resource
Have you created a useful tutorial, library or tool for iOS development that you would like to get in front of our 300,000+ monthly page views from iOS developers?
You can send a Tweet to @maniacdev on Twitter or submit the url here.
The resources we feel will appeal to our readers the most will be posted on the front page.





