摘要:
1、判断两个日期是否是同一天,不要求小时,分钟要一样 用法NSCalendar *calendar = [[NSCalendar alloc] initWithCalendarIdentifier:NSGregorianCalendar];BOOL datesAreEqual = [calendar isDate:firstDate equalToDate:secondDate toUnitGranularity:NSDayCalendarUnit];NSCalendar+equalWithGranularity.h#import @interface NSCalendar (equalWit 阅读全文