///在 .h 写代理
///结合UITableView 展示了UISearchBar...initWithObjects:@"qq", @"tencent", @"NOKIA", @"samsung", @"google", @"apple", @"MicroSoft", @"htc", nil...];
_tableView = [[UITableView alloc] initWithFrame:CGRectMake(0, 20, 320, 460) style:UITableViewStylePlain...= NSNotFound) {
[_searchArray addObject:str];
}
}
}
[_tableView reloadData];
}...isSearch) {
return _searchArray.count;
}
return _dataArray.count;
}
(UITableViewCell)tableView:(UITableView