从ios应用程序的远程服务器获取时间 [英] Get time from remote server for ios app

查看:231
本文介绍了从ios应用程序的远程服务器获取时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道我的iOS应用程序如何从远程服务器(NTP?Other ..?)获取日期时间,而不是使用本地iPad datetime;并将其转换为NSDate。



谢谢

解决方案

https://github.com/jbenet/ios-ntp 似乎是iOS的NTP框架,它为您提供

  [NSDate networkDate]; 


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

解决方案

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

[NSDate networkDate];

这篇关于从ios应用程序的远程服务器获取时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆