I need help in order to understand how works NSPredicate. Thank you.
I have an Entity in my Core Data model called “Post”
This entity “Post” have 2 attributes:
-postDate: Double // represents the date when the post was published (in miliseconds)
I have 9 posts [Post] saved in my persistent model, but only I want to fetch the posts inside the range that represents 24hoursAgo…now
I think that I need to use NSPredicate to filter the array but I don’t know how to pass the arguments.
Should I use “BETWEEN” operator? How?
The question would be:
postDate is between aDayAgo...now?