DEV Community

Tobi Oladipupo
Tobi Oladipupo

Posted on

NSFetchRequest

An NSFetchRequest specifies the criteria needed to select and optionally sort a group of managed objects held in a persistent store.

Top comments (2)

Collapse
 
iamyoung_tizzy profile image
Tobi Oladipupo

Sort descriptors are optional and can be used to order the results (for example, smallest to largest or oldest to newest).

Collapse
 
iamyoung_tizzy profile image
Tobi Oladipupo

A predicate is optional and can be used to filter the results (for example, fetching only those notes that are related to a certain notebook).