ios - How can I set a UILabel to change after a certain amount of time? -
i trying make uilabel change every 24 hours , have tried using method article: changing uilabel after specific time not know how save time app knows timer has been running 24 hours. should using different approach? maybe using date , when date changes change uilabel? problem not want people able advance clocks or change dates of devices see uilabel changes to. goal trying make quote of day app. please help.
what looking querying ntp (network time protocol) service.
- query ntp
- save result (user defaults simplest)
- set timer (you check every hour)
- on timer fire re query ntp , validate has passed 24 hours
- change label
Comments
Post a Comment