OS 7 has changed some of the rules regarding table views and their delegate. Of course, this is not highlighted somewhere easy to find.
But basically, in an earlier version of iOS, you could disable the tableView delegate and datasource. No error messages were made.
From iOS 7, you MUST use them in your dealloc, otherwise it may cause this to crash.
- (void)dealloc { fetchedResultsController.delegate = nil; self.searchDisplayController.delegate = nil; self.searchDisplayController.searchResultsDelegate = nil; self.searchDisplayController.searchResultsDataSource = nil; self.tableView.delegate = nil; self.tableView.dataSource = nil; }
Let me know if this solves your problem.
source share