Core Data (2nd edition)

Core Data (2nd edition)

I have two similar TableViews which have different appearances like tableView headers,footers, etc but they share same UITableViewDataSource, hence the NSFetchedResultsControllerDelegate, by semantics. Currently I have copy pasted the shared code.

But I have no idea how to properly reuse that common UITableViewDataSource / NSFetchedResultsControllerDelegate code.
The NSFetchedResultsControllerDelegate is making use of the tableView and so it requires a (strong?) reference to the tableView.

You could create a new @NSObject@ instance that implements the @UITableViewDataSource@ and @NSFetchedResultsControllerDelegate@ protocols. Then each @UITableViewController@ could instantiate its own instance of that object and thereby reuse the code.