当我在UISearchBar
中搜索时,我的普通tableView
已经被设置为
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath;
{
CustomCell *cell=(CustomCell *)[FieldTableView dequeueReusableCellWithIdentifier:@"Cell"];
//set cell background color cleare color
cell.backgroundColor=[UIColor clearColor];
if (isSearching) {
cell.AddPFFieldLable.text = [filteredContentList objectAtIndex:indexPath.row];
} else {
cell.AddPFFieldLable.text=[[fieldArray objectAtIndex:indexPath.row]valueForKey:@"FName"];
}
但当我搜索任何东西时,它会显示如下:
如何将其背景颜色更改为clearColor