I am haing a Simple Iphone based apllication.In that Application coredata is is used for storing data.
I have two fields.
one Field is Mesage and other field is date.I want to take the mesage which is sent within last 10 days.
I know to this code is used for that..but how to implement this?????
sortedArray = [unsortedArray sortedArrayUsingFunction:sortByStringDate context:NULL]
how to write a query and how to implement this…Anybody help me to implement this…..Advance thanks
Do something like this:
If this doesn’t make sense to you then read about NSFetchRequests and Predicates in the Core Data Programming Guide.