gpt4 book ai didi

iphone - 使用 iPhone SDK 获取选定单元格的 textLabel 文本

转载 作者:行者123 更新时间:2023-12-03 18:19:42 26 4
gpt4 key购买 nike

我想知道如何获取所选uitableviewcelltextLabel字符串值。

最佳答案

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
UITableViewCell *cell = [tableView cellForRowAtIndexPath:indexPath];
// now you can use cell.textLabel.text
}

关于iphone - 使用 iPhone SDK 获取选定单元格的 textLabel 文本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3685580/

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