How to determine if an NSDate is today?

前端 未结 20 2089
礼貌的吻别
礼貌的吻别 2020-11-28 18:20

How to check if an NSDate belongs to today?

I used to check it using first 10 characters from [aDate description]. [[aDate descriptio

20条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-11-28 19:07

    Check our Erica Sadun's great NSDate extension. Very simple to use. Fine it here:

    http://github.com/erica/NSDate-Extensions

    It's already there in this post: https://stackoverflow.com/a/4052798/362310

提交回复
热议问题