我正在尝试使用以下代码将时间戳转换为可读格式[timeStamp objectAtIndex:indexPath.row];
目前它显示为:01.01.1970 并且时间戳字符串看起来像“2013-07-19T17:19:06+02:00”;
NSString * timeStampString = [timeStamp objectAtIndex:indexPath.row];
NSTimeInterval _interval=[timeStampString doubleValue];
NSDate *date = [NSDate dateWithTimeIntervalSince1970:_interval];
NSDateFormatter *_formatter=[[NSDateFormatter alloc]init];
[_formatter setDateFormat:@"dd.MM.yyyy"];
NSString *_date=[_formatter stringFromDate:date];
cell.timeStampLabel.text = [NSString stringWithFormat:@"%@",_date ];