1:时间戳转NSDate
NSString *timeStamp =@"1545965436";
NSDate *date = [NSDate dateWithTimeIntervalSince1970:[timeStamp intValue]];
1:时间戳转NSDate
NSString *timeStamp =@"1545965436";
NSDate *date = [NSDate dateWithTimeIntervalSince1970:[timeStamp intValue]];
转载于:https://www.cnblogs.com/KiVen2015/p/10365195.html