Find out if an NSDate is today, yesterday, tomorrow

前端 未结 3 1573
北恋
北恋 2020-12-31 05:47

With the iOS SDK I need to find an easy and secure way to see if an NSDate is today, yesterday, tomorrow. What I\'m looking for is something like this in pseudo code:

<
3条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-31 06:09

    Check our Erica Sadun's great NSDate extension class: http://github.com/erica/NSDate-Extensions

    There are lots of date comparisons, among them exactly what you need :)

提交回复
热议问题