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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T07:08:40+00:00 2026-05-28T07:08:40+00:00

I am looking for the best way to store data in a game. Currently

  • 0

I am looking for the best way to store data in a game. Currently I have like 30 different variables which do different things in my game. I only need these variables to be remembered for when the app is open, once it closes all of these variables get reset. The way I was doing it currently, was using NSUserDefaults but it just gets too confusing and annoying at this point.

Can anyone tell me how I should go upon this? And if so, a link on how to do it would be helpful too!

  • 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-05-28T07:08:40+00:00Added an answer on May 28, 2026 at 7:08 am

    You can create your variables in your appdelegateclass.
    As the scope of your appdelegate class is through out your application and when you want to use those variables you can just share them with different class.

    And as your requirement is that the variables needs to be remembered once, this approach will do exactly the same and as soon your app is close the scope of appdelegate will be over too and thus they will get released and when you launch your game again they will surely fetch new value.:)

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

Sidebar

Related Questions

I'm looking for the best way to store XMLs in a Oracle Database. Currently
I'm looking for a way to store different data types in one fixed length
What is the best or preferred way to store data for a .NET desktop
I need to create the following functionality, and looking for the best way to
Baisicly what I am looking for is the best was to store data in
I am looking for the best mechanism to store a bunch of environmental data
I'm looking for a best way to represent a set of structural data. I'm
I'm looking for a best practise way to handle incoming time series data. One
I'm looking for the best way to change a data type of a column
I'm looking for best way of using session within zf application. At first I

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.