ios - Is it possible to exclude the object with the latest date? -
i have core data model entity has attribute "creation date"
what i'd create fetch request has objects not latest. content of core data store changes while user looks @ data (i.e. uitableview) can not set "latest object" , use nspredicate.
so there way create format exclude data set latest date?
yes, can build nsfetchrequest
following settings:
- sort date, descending order
- set offset 1
execute fetch , skip first record.
you can load nsfetchedresultscontroller
if appropriate.
Comments
Post a Comment