gpt4 book ai didi

ios - 如何更新 UITableViewRowAction 中的按钮?

转载 作者:行者123 更新时间:2023-12-01 16:26:35 26 4
gpt4 key购买 nike

我使用objective-c 编程iPhone App。版本在 iOS 8.1 之后。我的 UITableViewCell 中有一些 UITableViewRowAction,我在点击其中一个 UITableViewRowAction 后发布请求,如果成功,我希望将按钮 (UITableViewRowAction) 更新为无效,以便无法再次点击它。请帮助我,这很重要,但我没有解决方案。

如图:
这是我们可以向左滑动的单元格

enter image description here

向左滑动后我们可以看到三个按钮

enter image description here

最佳答案

我认为您需要使用 UITableView 委托(delegate)方法

 - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath;

关于ios - 如何更新 UITableViewRowAction 中的按钮?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34944575/

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