How to change the label with the date after changing the system date in iOS?

I have a simple request, but I do not know how to do this.

This is what I'm trying to achieve: 1) I have a UILabel with today's date, that is, "29/04/12" 2) At midnight, I want this label to update by itself to "30/04/12" without the need to change the view or click on something.

This is step 2, which I do not know how to do. I have an idea how this will be done, for example, the potential receipt of a system notification about a date change (if possible) or the use of some kind of timer as a trigger.

Any help would be greatly appreciated, thanks in advance.

+5
source share
1 answer

( ), UIApplicationDelegate - (void)applicationSignificantTimeChange:(UIApplication *)application, . , , , , , .

+11

All Articles