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:

  1. sort date, descending order
  2. set offset 1

execute fetch , skip first record.

you can load nsfetchedresultscontroller if appropriate.


Comments

Popular posts from this blog

python - Healpy: From Data to Healpix map -

c - Bitwise operation with (signed) enum value -

xslt - Unnest parent nodes by child node -