Is there any way to get the tamper-proof date and time on iPhone?

后端 未结 1 1279
小鲜肉
小鲜肉 2020-12-03 22:32

For various reasons I need to get from the iPhone the current date and time that can\'t be meddled with by the user. Yes, I\'ve seen how one can check a server (e.g., here),

1条回答
  •  南笙
    南笙 (楼主)
    2020-12-03 23:17

    Assuming you always have Internet available, you could implement a class or object that connects to a remote Network Time Protocol server.

    Here's an open source GitHub project that should get you started, and the related StackOverflow question I found it at.

    0 讨论(0)
提交回复
热议问题