I am developing a very simple app that needs to hide some buttons when clicked and when the day is changed i.e. from 20/8/22 to 21/8/22 I need to make those buttons visible again, so please suggest me how I'm supposed to do that.
Run a clock (1 sec interval, or whatever you prefer) when you run the app, which checks the date. Test this against the last saved date. If different, update the last saved date, and make the buttons visible.
If user is using app at 23 Hrs and 59 minuits and after 2 minutes and suddenlly your app play hide and seek logic with button(s) then clock might be considered, but if you only want smthing to be checked on application startup that it is new day or the curent one, and with this logic you want to make button(s) visible true-false, in that case you can adapt this also,
Thank you so much, I was having a very hard time setting this logic in fact I gave up.
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.