Get Updates By E-mail 

Article Written By:
Johann Dowa

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 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 submit the url here.

The resources we feel will appeal to our readers the most will be posted on the front page.

Comments