Calling a Method at NSDate

前端 未结 2 1375
一向
一向 2021-01-16 03:18

I\'m trying to call a method at a certain time and date (using an NSDate) but I can\'t work out how to do it.

I don\'t want to use NSTimer

2条回答
  •  余生分开走
    2021-01-16 04:00

    Why don't you just use the NSTimer, and in the...

    - (void)applicationDidBecomeActive:(UIApplication *)application
    

    callback, check the time and date, and update the timer, or call the function if the date has passed.

提交回复
热议问题