获取当前UITableViewCell在TableView上的索引

    UITableView *tableView = (id)[[self superview] superview];

    NSIndexPath *indexPath = [tableView indexPathForCell:self];

你可能感兴趣的:(iOS开发)