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, 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!

©2010 iPhone, iOS 4, iPad SDK Development Tutorial and Programming Tips. All Rights Reserved.

.

Share and Enjoy:

RSS
Twitter
Facebook
DZone
HackerNews
del.icio.us
FriendFeed