0
この関数は、時間の誤差実装検索バー
-(BOOL)searchDisplayController:(UISearchDisplayController *)controller
shouldReloadTableForSearchString:(NSString *)searchString
{
[self filterContentForSearchText:searchString
scope:[[self.searchDisplayController.searchBar scopeButtonTitles]
objectAtIndex:[self.searchDisplayController.searchBar
selectedScopeButtonIndex]]];
return YES;
}
このラインでコンパイラエラー
[self filterContentForSearchText:searchString
scope:[[self.searchDisplayController.searchBar scopeButtonTitles] objectAtIndex:[self.searchDisplayController.searchBar selectedScopeButtonIndex]]];
ARCセマンティック問題
'の目に見える@interfaceをコンパイル与えていますViewController 'はセレクタを宣言します ' filterContentForSearchText:scope: '
このエラーを取り除くには? 私はこのチュートリアルhereに従っています。チュートリアルの正確な関数は、xcodeでエラーを出しています。
を実装します。 –
を参照してください。https://www.appcoda.com/how-to-add-search-bar-uitableview/ –
私はこのチュートリアルに従います.xcodeでエラーを出すチュートリアルのsearchDisplayController関数。 –