I want to have a feature of "Recent 20 Items" in my iOS app. I use Core Data and NSFetchRequest
. How can I limit the result number to 20 to achieve this? Thank you in advance!
Kai.
set the fetchLimit of the NSFetchRequest
[request setFetchLimit:20];
Swift 3.0 uses:
request.fetchLimit = 20
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With