- I have used fetchedResultsController(FRC) to fetch and list a tableview using fetchedObjects. And the items are listed fine.
- I am also having a search bar. On typing any string will update the FRC as shown below & perfomFetch() and reload the tableView.
fetchedResultsController.fetchRequest.predicate = NSPredicate(format: "title CONTAINS[c] %@, text)
Everything is working fine, except when I search faster on searchBar. The crash is happening in cellForRowAtIndexPath & numberOfSections saying that the fetchedObjects is 'Empty'
How to resolve the crash due to fast search ?