gpt4 book ai didi

iphone - 如何在 didSelectRowAtIndexPath 中到达当前选定的单元格?

转载 作者:IT老高 更新时间:2023-10-28 11:27:11 26 4
gpt4 key购买 nike

I want to change the accessory view type of a cell through the method: didSelectRowAtIndexPath , i.e. when a row is selected I want to change the accessory view type, can I do this inside that method ?

最佳答案

您可以像这样使用 indexPathdidSelectRowAtIndexPath: 方法中获取单元格。

UITableViewCell *cell = [tableView cellForRowAtIndexPath:indexPath];

关于iphone - 如何在 didSelectRowAtIndexPath 中到达当前选定的单元格?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6547065/

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