Time protection algorithm

Discussion in 'iOS Programming' started by Karamelli, Aug 10, 2017.

Tags:
  1. Karamelli macrumors newbie

    Joined:
    Jul 29, 2017
    #1
    Hi,

    I want to make swift project which allows to do something only after 2 hours. I will get time and date, if 2 hours has passed, I will allow but people can change the time in settings.

    How can I inhibit it?
     
  2. Karamelli thread starter macrumors newbie

    Joined:
    Jul 29, 2017
    #2
    By the way,

    I don't wanna use internet for this job. Because, I can, also, look at the located time from internet and compare with phone's time but I wanna do it with offline(without internet).
     
  3. firewood macrumors 604

    Joined:
    Jul 29, 2003
    Location:
    Silicon Valley
    #3
    IIRC, mach absolute time only gets reset by a device reset (power off and back on).
     

Share This Page