iOS开发 利用cell上的view获得这个cell以及他的indexpath和row

    xiaoxiao2021-03-26  26

    这类问题经常会遇到,方法也很简单暴力

    UITableViewCell *cell = (UITableViewCell*)[[sender superview] superview]; NSIndexPath *indexPath = [_tableView indexPathForCell:cell]; Frame *frame = array[indexPath.row];

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

    最新回复(0)