I have a View Controller containing a UITableView that used an NSMutableArray to determine its content via the usual UITableViewDelegate and UITableViewDataSource methods.
In the past I have used NSFetchedResults controller to update the TableView as the result of its query results changing. In this case I would like to update the UITableView appropriately as items are added to/removed from the array.
How should I handle this? Should I wrap the NSMutableArray in a model class with addItem/removeItem methods which use delegation or Notification to trigger reloadData on the UITableView? Or is there a more elegant solution?
There are maximum ~20 items in the array so performance isn’t so much of an issue.
It seems that NSArrayController is what I want, however it is not available in iOS, so it looks like KVO is my best bet.