gpt4 book ai didi

iphone - 委托(delegate)点击 UITableViewCell 上的 - 按钮

转载 作者:行者123 更新时间:2023-11-28 23:07:53 27 4
gpt4 key购买 nike

当我们点击“-”按钮并且删除按钮出现在右侧的单元格上时,是否有任何委托(delegate)被调用。点击此按钮后,我想禁用单元格上的某些标签。

最佳答案

当你在 UITableView 的行上滑动时它会调用

(void)tableView:(UITableView *)tableView willBeginEditingRowAtIndexPath:(NSIndexPath *)indexPath

点击删除按钮后它会调用

(void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath

最后

(void)tableView:(UITableView *)tableView didEndEditingRowAtIndexPath:(NSIndexPath *)indexPath

关于iphone - 委托(delegate)点击 UITableViewCell 上的 - 按钮,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8982188/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com