テーブル ビューがあり、このように項目を追加しています。
NSDictionary *memberInfo = [self.currentChannel infoForMemberWithID:memberID];
memberinfo=memberInfo;
cell.textLabel.text = [NSString stringWithFormat:@"%@",[memberinfo objectForKey:@"name"]];
cell.detailTextLabel.text = [NSString stringWithFormat:@"%@",[memberinfo objectForKey:@"status"]];
cell.textLabel.backgroundColor = [UIColor clearColor];
cell.detailTextLabel.backgroundColor = [UIColor clearColor];
return cell;
「そしてそれは正常に機能していました。今、それに検索バーを追加したいと思います。一致した文字列に従ってテーブルビューをロードする必要があります。しかし、私はこのようにテーブルビューをロードしています。配列を検索する方法を知っています。使用して
- (void)searchBar:(UISearchBar *)searchBar textDidChange:(NSString *)searchText.i want to load the table view according to the match of the searchstring ,Can anybody know this?