Вопрос

How to store Date from internet like "2014-12-01T20:00:00Z" in core data and compare this date with [NSDate Date] using nspredicate. as i am using @((date" >= startDate) && (date <= endDate))..But it fails to match date always..

Это было полезно?

Решение

Just store startDate and endDate as NSDate. Predicate for this:

[NSPredicate predicateWithFormat:@“%@ >= startDate and %@ <= endDate”, [NSDate date], [NSDate date]];
Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top