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 7833649
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T12:48:50+00:00 2026-06-02T12:48:50+00:00

I was going to use NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; // to store [defaults

  • 0

I was going to use

 NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
 // to store
 [defaults setObject:[NSNumber numberWithInt:level] forKey:@"level"];
 [defaults setObject:[NSNumber numberWithInt:gamesplayed] forKey:@"games"];
 [defaults synchronize];

to store the number of games/levels played for a game. I wondered if these will get lost if I end up putting in an update to the app at some point? Where the use would be forced to start from the beginning again?

Basically is this how I should be storing this data? or is there another way? I want to be able to recall data stored locally about the user. I know I could go through mysql/webservices etc, but figured I don’t need to go through all that for this?

  • 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-02T12:48:53+00:00Added an answer on June 2, 2026 at 12:48 pm

    I wondered if these will get lost if I end up putting in an update to the app at some point?

    No, but they will be lost if the user deletes the application and then reinstalls it, and their progress won’t be available on any of their other devices.

    Basically is this how I should be storing this data?

    For a game, I’d suggest using Game Center. For other types of application, I’d suggest iCloud.

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

Sidebar

Related Questions

I am going to use AES_ENCRYPT() and AES_DECRYPT to store patient data in an
If i'm going to use a XML file to store some information, Am I
im going to use ajax/comet to create a chat. and i want to store
I was going to use a standard array, I need it to x number
im going to use Sociallib library in my app to interact with social networks.
I was going to use Zend_Cache, but it says here that it's not the
I am going to use a HSlider to set a range of values. I
I am going to use singleton classes to manage both DB connections and references
I was just going to use the FileUpload.FileBytes property but looking into the respective
I am going to use forms authentication but I want to be able to

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.