摘要: 1、判断两个日期是否是同一天,不要求小时,分钟要一样 用法NSCalendar *calendar = [[NSCalendar alloc] initWithCalendarIdentifier:NSGregorianCalendar];BOOL datesAreEqual = [calendar isDate:firstDate equalToDate:secondDate toUnitGranularity:NSDayCalendarUnit];NSCalendar+equalWithGranularity.h#import @interface NSCalendar (equalWit 阅读全文
posted @ 2013-12-10 13:49 haroel 阅读(394) 评论(0) 推荐(0) 编辑