Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8369817
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T13:45:04+00:00 2026-06-09T13:45:04+00:00

With the NSUserDefaults class, you can save settings and properties related to application or

  • 0

With the NSUserDefaults class, you can save settings and properties related to application or user data.

now i have tow question :

  1. ( settings and properties ) Where are stored ?
    if =>The objects will be saved in what is known as the iOS “defaults system”
    then : What is iOS “defaults system”

  2. How long will remain stored ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T13:45:05+00:00Added an answer on June 9, 2026 at 1:45 pm

    Where? It depends on what kind of app you’re developing. For AppStore applications, in the sandbox folder of your installed app folder, more precisely in the Library/Preferences folder. The actual file that contains the settings is a PLIST (property list) file whose name matches the bundle identifier of your app.

    All in all:

    (/var/mobile/Applications/XXXX-XXXX-XXXXXX-XXXXXXXX/MyApp.app/Library/Preferences/com.mycompany.bundleid.plist
    

    (where XXXX etc. is an UUID).

    If you’re making an app for jailbroken devices (i. e. a Cydia app), it will be a plist file again, whose name matches the bundle ID, but it will be installed in

    /var/mobile/Library/Preferences/com.mycompany.bundleid.plist
    

    The iOS defaults system is the part of the Foundation framework, iOS itself and the files and directories altogether which manage, store and modify your preferences/settings/defaults.

    How long? Again, it depends on what kind of app you are writing. For a normal AppStore app, the defaults are persited to the file – but only as long as the user doesn’t delete your app. When your app is deleted, the whole sandbox, app bundle and od course the user defaults will also be gone. Forever, irreversibly.

    If you develop a jailbroken application which resides in the system apps’ directory (/Applications), then the user defaults file will be available in /var/mobile/Library/Preferences even if the user deletes your package/application, as APT (the backing package manager of Cydia) only makes note of the files your package originally contained, and that’s not the case with the defaults property list file (which is only created when your app first accesses the NSUserDefaults class.) If the user manually deletes the file or restores to a stock firmware, it’ll be gone.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm subclassing NSUserDefaults in my application. A side effect of this is I can't
I have a 'User' object that contains a property of 'UIImage' class. How do
I am defining a few NSMutableArrays from data stored in NSUserDefaults like this: nameArray
I have a class that relies on NSUserDefaults that I'm trying to unit-test and
Currently I'm trying to save an NSRect to my user defaults. Right now I'm
Mac OS X and iOS have a nice little class called NSUserDefaults . It's
I have designed a web service application and fetch app's data from my server
The NSUserDefaults class provides us a convenient way to store/restore shared data. But I
I've added NSUserDefaults data retrieval to my app, which is pretty nice. But for
What happens with the NSUserDefaults values and the SQLite database after updating the application

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.