获取当前cell

    xiaoxiao2021-12-15  43

    获取当前cell

    - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { if (indexPath.section == 0) { [self selectCurrentIndexPath:self]; } } - (void)selectCurrentIndexPath:(id)sender { NSIndexPath *indexPath = [self.tableView indexPathForSelectedRow]; UITableViewCell *cell = [self.tableView cellForRowAtIndexPath:indexPath]; cell.textLabel.text= @"正在修改"; } //获取cell NSIndexPath *indexPath = [self.tableView indexPathForSelectedRow]; UITableViewCell *cell = [self.tableView cellForRowAtIndexPath:indexPath];

    转载请注明原文地址: https://ju.6miu.com/read-1000293.html

    最新回复(0)