Swift: FB Messenger - How to Sort and Filter with Core Data (Ep 3)

Profile Picture
- Published on Apr 8, 2016馃審 Public

In this video, we learn how to fetch the most recent message for our friends using the power of Core Data. First we sort our messages in descending order on our date property. Next we create a predicate that filters based on a singular friend. Finally we execute the above algorithm for each friend in our database. (Part 1) Building out the UI with Auto Layout in Code / Programmatically: https://youtu.be/XtEoKixIfG4 (Part 2) Core Data - Create, Read, and Delete Entities: https://youtu.be/TW_jcvVvPwI Completed Source Code: https://www.letsbuildthatapp.com/cour... Please follow me on Twitter here: https://www.twitter.com/buildthatapp