UITableView not populated after removing and reinserting
CoreDataTableViewController
I'm working on an app using Stanford's CoreDataTableViewController. All
database saving and fetching was working correctly until I removed the
CDTVC files and then added them again. Now it's not fetching anything.
CellForRowAtIndexPath is not being called and although the fetch request
returns the correct number of entries in the database (reflecting each new
entry), the numberOfRowsInSection and numberOfSections both return 0.
I have no idea what could have happened. I tried recreating the subclass,
creating a completely new Table View Controller, I deleted the app from
the simulator and from my device. My outlets as dataSource and delegate
are set, the fetchedResultsController gets set and is not nil and the
methods inside CoreDataTableViewController, setFetchedResultsController
and performFetch, are still being called.
Thanks
No comments:
Post a Comment