searchResultsTableView无法重用cell的问题
我是使用OC写的,为什么在我这里searchResultsTableView无法重用在storyboard里面创建的cell,每次在搜索框中输入文字,都会崩溃并提示“
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'UITableView (<UISearchResultsTableView: 0x7ff00c862000; frame = (0 0; 375 667); clipsToBounds = YES; autoresize = W+H; gestureRecognizers = <NSArray: 0x7ff00bc24d20>; layer = <CALayer: 0x7ff00bc10940>; contentOffset: {0, -64}; contentSize: {375, 80}>) failed to obtain a cell from its dataSource (<ViewController: 0x7ff00bc27c00>)'
”,在storyboard中已经设置identifier了,而且在搜索时已经获取到搜索结果并存储在数组中。