问题
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