searchDisplayController が tableView:cellForRowAtIndexPath: を呼んだ時に落ちる

カスタムセルを登録し再利用しています。

エラー:

*** Terminating app due to uncaught exception ‘NSInternalInconsistencyException’, reason: ‘unable to dequeue a cell with identifier Cell – must register a nib or a class for the identifier or connect a prototype cell in a storyboard’

 

 

unable to dequeue a cell with identifier tag

Apple Documentation:
Important
You must register a class or nib file using the registerNib:forCellReuseIdentifier: or registerClass:forCellReuseIdentifier: method before calling this method.

解決法: searchDisplayController の tableView も登録する

[self.searchDisplayController.searchResultsTableView registerNib:nib forCellReuseIdentifier:@”Cell”];