I have a Event Entity
with a action as Attribute
. The action is a NSString
that gets saved to core data on each event in my iOS app. The event.action will always be a predefined string e.g.. "Work" "Home" "Lunch"
How can I use NSPredicate
to retrieve the last 5 actions and give me the action that was performed the most?
Are there any good tutorials on using NSPredicate?