Is there a best practice to obtain a notification when the time changes?
I'm using a NSTimer
that checks every 0,002 secs if the time is changed (hours and minutes, not seconds and milliseconds) to maintain in sync a label in my app with the phone clock every minute.
I'd hope there is a better solution.
Thank you
Set a recurring timer starting at the next whole minute:
You might also want to update your UI in response to
UIApplicationSignificantTimeChangeNotification
for major, unexpected changes, i.e. "change to a new day (midnight), carrier time update, and change to or from daylight savings time".