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

  • Home
  • SEARCH
  • 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 971675
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T03:00:06+00:00 2026-05-16T03:00:06+00:00

I would like to ask, which method has been called whenever the user quit

  • 0

I would like to ask, which method has been called whenever the user quit the app totally.

What I mean for quit the app totally is after the user tap the Home button, the app actually is running at the background but whenever the user double tap the Home button, then tap and hold on an app icon and then tap the RED MINUS sign to quit the app.

I’m trying to save my data whenever the app goes to background and load the data whenever the apps go back to active (foreground). It’s work as long as I didn’t quit the app totally.

If I quit the app by tapping the red minus sign and relaunch the app again, all my saved data is gone? Weird case is, sometimes it is saved and can be loaded, but mostly it won’t be saved.

I have double check with my save method and try to NSLog it, I got the all the data saved but just don’t know why it cannot be loaded after the user quit the app by tapping red minus sign.

Anyone know what happens on my app? BTW, I’m using NSUserDefaults to save my data and load my data.

[appDefaults setObject: object objectForKey: @”key”];
[appDefaults objectForKey: @”key”];

  • 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-16T03:00:06+00:00Added an answer on May 16, 2026 at 3:00 am

    NSUserDefaults saves the values you give it at periodic intervals, not necessarily by the time your application terminates. To make sure your settings get written to disk, call the -synchronize method on your defaults object in -applicationWillTerminate:.

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

Sidebar

Ask A Question

Stats

  • Questions 541k
  • Answers 541k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer You can use the PHP Curl library. May 17, 2026 at 2:58 am
  • Editorial Team
    Editorial Team added an answer Writing into /assets directory at runtime? AFAIK that's not possible.… May 17, 2026 at 2:58 am
  • Editorial Team
    Editorial Team added an answer In your Glassfish installation, do you have the admin-cli.jar file… May 17, 2026 at 2:58 am

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

Hey guys. I have a method that gets called each second which I want
I'm pretty new to programming and html design and would like to ask a
I have a method that contains an asynchronous call like this: public void MyMethod()
I have an aspx masterpage that I would like to use in Sketchflow in
Say I have a method like this: public void SaveData() { try { foreach
We recently had a problem where, after a series of commits had occurred, a
I'm trying to create a web user interface for a Java application. The user
I have a large .NET web application. The system has projects for different intentions
I'm developing a project using a layered architecture. I have a DAL in which
Update : I appreciate all of the comments, which have essentially comprised unanimous opposition.

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.