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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T06:10:03+00:00 2026-06-11T06:10:03+00:00

How would you go about implementing a dayDidChange method? I have a dateLabel ,

  • 0

How would you go about implementing a “dayDidChange” method?

I have a dateLabel, that needs updating, when the day changes.

I already had 2 solutions implemented. But gave up on them.

1st, on viewWillAppear, I would set my label. Chances for date changing when the user is viewing the VC are VERY small … and it wouldn’t really introduce any “errors” to execution But still, it’s not perfect.

2nd, I also implemented an NSTimer with intervals of 1 second. Works great. But I’m not too found of the idea of having a method being called if there is a chance that I don’t need to do it.

Are there any other options? I need to update that label, when the day changes. Also, is it possible to use NSNotificationCenter with 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-11T06:10:04+00:00Added an answer on June 11, 2026 at 6:10 am

    You can calculate the time left on the day and set a timer to it. You can also listen to UIApplicationSignificantTimeChangeNotification. Note that this notification will be fired not only when the date changes, but for timezone adjustments and other changes. Keep in mind also that the firing of the notification will be triggered only if your app is not in an inactive state.

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

Sidebar

Related Questions

How would I go about implementing the functionality that allows for a hidden field
How would I go about implementing a thread that runs throughout the application. I
How would you go about implementing the equivellent of a wait until complete method
Just a quick question about how you would go about implementing this. I want
How would you go about implementing private mail functionality such like Bebo/Facebook and other
What are the requirements and how would I go about implementing the Application Push
Any ideas how I would go about writing a javascript method to insert an
I would like to know how I would go about altering the HTML that
Anyone have any idea how I would go about converting a timestamp in milliseconds
How would you go about implementing a map of this type in Silverlight? The

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.