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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T20:58:04+00:00 2026-05-20T20:58:04+00:00

This question is a result of another one in which i didn’t knew how

  • 0

This question is a result of another one in which i didn’t knew how to update NSUserDefaults from a Settings bundle with multitasking. Now i do (thanks to @mvds), placing the refreshDefaults code inside the app delegate, in applicationWillEnterForeground.

The problem is, the code implies a change in the view (background color, etc) so when i come back to the app after changing the setting, the view is displayed and only afterwards is called applicationWillEnterForeground.

This is, it shows the previous “theme” and then it changes to the new one. Is there any way to overcome this, to notify of the change before the app gets displayed? The result is ugly and i just don’t see any method in the lyfecicle that might be called before.

  • 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-20T20:58:05+00:00Added an answer on May 20, 2026 at 8:58 pm

    When an app is going in background mode, the system take a screenshot of the current state. When the app is comming back in foreground, it is first displaying this screenshot while loading back the application.

    If you change your theme colors, what you see in the first place is this screenshot, and then the view is displayed and updated. You can not change this behaviour.

    The only thing you can do is try to display something different in the WillEnterBackground method, like an empty UI or a splashscreen.

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

Sidebar

Related Questions

This is a spin off from another question I posted a few days ago
Pointless Dribble Okay This is another weird one from me, i want to thank
I'm writing this question with reference to this one which I wrote yesterday. After
This question is a result of a lunch-time conversation with a co-worker...I've read questions
As a result of the search for an answer of this question , I
This question results from hours of googling highstocks, zoom, extremes, ranges, and every other
This question is similar in concept to this one , except I see I
This question is related to my other one and I hope to get some
This is a more specific question to follow up on [another question that I
Bit of a n00b question this one, I guess, but here goes. As part

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.