Goal
- Get
NSDate
instance from timestamp-likeNSInteger
Solution
- Use
dateWithTimeIntervalSince1970
method ofNSDate
NSDate *d = [NSDate dateWithTimeIntervalSince1970:timestamp];
DRY
NSDate
instance from timestamp-like NSInteger
dateWithTimeIntervalSince1970
method of NSDate
NSDate *d = [NSDate dateWithTimeIntervalSince1970:timestamp];
DRY