iOS6アプリケーションを開発しています。
UITableView次のAppleのテーブル検索の例に検索機能を追加したいと思います。しかし、私の実装は機能しません。
パラメータがである- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPathかどうかはわかりません。tableViewsearchDisplayController.searchResultsTableView
このスクリーンショットを見てください:

ご覧のとおり、tableViewはですがUISearchResultsTableView、この行は次のとおりです。
if ([tableView isEqual:self.searchDisplayController.searchResultsTableView])
それは常に誤りです。
たぶん、アクセスするためにアウトレットを追加する必要がありますが、 TableSearchの例seachResultsTableViewでそのアウトレットが見つかりません。
これViewController.h:
@interface ViewController: UIViewController <UITableViewDelegate, UITableViewDataSource, UISearchDisplayDelegate, UISearchBarDelegate> {
それを機能させるために何をする必要がありますか?