---
title: "Best classes used to store data on iPhone"  
description: "Best classes used to store data on iPhone"  
author: "Anonymous User"  
published: 2015-12-10  
updated: 2015-12-13  
canonical: https://www.mindstick.com/forum/33716/best-classes-used-to-store-data-on-iphone  
category: "iphone"  
tags: ["iphone", "ios", "objective c"]  
reading_time: 1 minute  

---

# Best classes used to store data on iPhone

I am new on iPhone [app development](https://www.mindstick.com/services/mobile-app-development), I want to know which classes are the best to save [phone](https://www.mindstick.com/articles/23411/the-most-effective-method-to-find-the-perfect-small-business-phone-system-for-your-business) [data](https://www.mindstick.com/articles/13050/salesforce-aiming-to-dominate-predictive-analytics-with-data-science). because I want to save the state of my [application](https://www.mindstick.com/articles/12824/calculator-application-in-android)(5K or so).\
My main motive is data persisting across upgrades. I use some other [applications](https://www.mindstick.com/articles/12847/how-to-choose-the-right-ethernet-cable-for-industrial-applications) they are not performing well, so I would not prefer them!

## Replies

### Reply by Tarun Kumar

If you want to save instances of application data being deleted after an upgrade use NSUserDefaults, this will solve your issue. but if you will use just NSUserDefaults and standard plist-storable objects (NSString, NSDictionary, NSNumber, NSArray, NSNumber, and primitives), you should be safe.


---

Original Source: https://www.mindstick.com/forum/33716/best-classes-used-to-store-data-on-iphone

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
