Implementuję UITableView z UISearchDisplayController w kodzie Xcode 4.2. UITableView & UISearchDisplayController są tworzone w StoryBoard. ustawić identyfikator komórki (SampleCell) dla UITableView i dostęp to jakUsterka iOS 5 UISearchDisplayController crash
cell = [tableView dequeueReusableCellWithIdentifier:@"SampleCell"];
UITableView działa poprawnie. Ale gdy próbuję szukać, awarie aplikacji poniżej błędu.
*** Assertion failure in -[UISearchResultsTableView _createPreparedCellForGlobalRow:withIndexPath:], /SourceCache/UIKit_Sim/UIKit-1912.3/UITableView.m:6072
2011-11-09 22:22:16.058 SampleApp[14362:fb03] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'UITableView dataSource must return a cell from tableView:cellForRowAtIndexPath:'
Chyba trzeba ustawić identyfikator komórki na komórkę self.searchDisplayController.searchResultsTableView. Ale nie wiem jak. Z góry dziękuję za pomoc. =)
+1 dla uratowałeś mi czasu na wpisywanie question.I dokładny obliczu problemu sam. – thesummersign