fix button inside a cell in UITableView not work

This commit is contained in:
Danmei Chen 2020-09-28 10:42:52 +02:00
parent a8cd49c741
commit 8638dea085
8 changed files with 8 additions and 0 deletions

View file

@ -54,6 +54,7 @@
cell = [[UICallConferenceCell alloc] initWithIdentifier:kCellId];
}
[cell setCall:[self conferenceCallForRow:indexPath.row]];
cell.contentView.userInteractionEnabled = false;
return cell;
}

View file

@ -61,6 +61,7 @@
cell = [[UICallPausedCell alloc] initWithIdentifier:kCellId];
}
[cell setCall:[self conferenceCallForRow:indexPath.row]];
cell.contentView.userInteractionEnabled = false;
return cell;
}

View file

@ -177,6 +177,7 @@
cell.addressLabel.text = linphoneContact ? [NSString stringWithUTF8String:linphone_address_as_string(addr)] : phoneOrAddr;
cell.selectedImage.hidden = ![_contactsGroup containsObject:cell.addressLabel.text];
[cell.avatarImage setImage:[FastAddressBook imageForAddress:addr] bordered:NO withRoundedRadius:YES];
cell.contentView.userInteractionEnabled = false;
return cell;
}

View file

@ -214,6 +214,7 @@
if ([value hasPrefix:@" "])
value = [value substringFromIndex:1];
[cell setAddress:value];
cell.contentView.userInteractionEnabled = false;
return cell;
}

View file

@ -361,6 +361,7 @@ static int ms_strcmpfuz(const char *fuzzy_word, const char *sentence) {
[cell.avatarImage setImage:image bordered:NO withRoundedRadius:YES];
[cell setContact:contact];
[super accessoryForCell:cell atPath:indexPath];
cell.contentView.userInteractionEnabled = false;
return cell;
}

View file

@ -96,6 +96,7 @@
} else {
cell.imageView.image = [UIImage imageNamed:@"call_incoming.png"];
}
cell.contentView.userInteractionEnabled = false;
return cell;
}

View file

@ -225,6 +225,7 @@
LinphoneCallLog *log = [logId pointerValue];
[cell setCallLog:log];
[super accessoryForCell:cell atPath:indexPath];
cell.contentView.userInteractionEnabled = false;
return cell;
}

View file

@ -146,6 +146,7 @@
//accessoryForCell set it to gray but we don't want it
cell.selectionStyle = UITableViewCellSelectionStyleNone;
[cell updateFrame];
cell.contentView.userInteractionEnabled = false;
return cell;
}