Get time from remote server for ios app

血红的双手。 提交于 2019-12-06 07:21:34

问题


I would like to know how my iOS app can get the datetime from a distant server (NTP ? Other..?), and not with local iPad datetime ; and transform it on NSDate.

Thanks


回答1:


https://github.com/jbenet/ios-ntp seems to be a NTP framework for iOS which gives you

[NSDate networkDate];


来源:https://stackoverflow.com/questions/10851161/get-time-from-remote-server-for-ios-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!