【问题标题】:Get time from remote server for ios app从远程服务器获取 ios 应用程序的时间
【发布时间】:2012-06-01 13:23:39
【问题描述】:

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

谢谢

【问题讨论】:

    标签: ios datetime nsdate


    【解决方案1】:

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

    [NSDate networkDate];
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2012-05-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多