Search code examples
ioscore-datarealm

iOS NSFetchedResultsController similar class for Realm version 2.1


I'm working with a project which has Realm database. I have update Realm to the latest version (2.1.1). I'm quite familiar with CoreData with NSFetchedResultController class to manage the tableview (We only need to manage the underlying data).

Is there any similar class or solution that work with the latest Realm version so that we can just manage the underlying data and the tableView will be automatically updated?


Solution

  • The equivalent concept of NSFetchedResultsController in Realm is called "Collection Notifications".

    There's a blog post that just came out today with more information about the high level overview of architecting an app with Realm's Collection Notifications like that: Live Objects and Fine-Grained Notifications: Updates with Realm.