我的公司网络后面有iPod,这些设备没有互联网接入。我真的需要这些设备有最新的时间..。
我想将iOS设置为使用内部NTP服务器,但AFAIK iOS不允许我这样做。如果是这样的话,我会全神贯注于如何做这件事。关于如何在这些设备上获得同步时间,我考虑了其他选项:
对我的时间问题还有其他的建议吗?
发布于 2014-08-08 22:36:06
一种选择是获得GPS时间。尝尝这个。
#import <CoreLocation/CoreLocation.h>
CLLocation* gps = [[CLLocation alloc]
initWithLatitude:(CLLocationDegrees) 0.0
longitude:(CLLocationDegrees) 0.0];
NSDate* now = gps.timestamp;https://stackoverflow.com/questions/25212955
复制相似问题