YNExpandableCell icon indicating copy to clipboard operation
YNExpandableCell copied to clipboard

Updating values of expandable cells

Open usamabinattique opened this issue 8 years ago • 1 comments

Where and how would i update content of expandable cells. e.g values of sliders and segment Control in your case. the delegate method expandCellWithHeight only returns the cells with the set height and doesn't allow me to access the content of the cell. This has been troubling me and i cant find a solution. please update with your response

usamabinattique avatar Dec 15 '17 11:12 usamabinattique

func tableView(_ tableView: YNTableView, expandCellWithHeightAt indexPath: IndexPath) -> YNTableViewCell? {
    let ynSliderCell = YNTableViewCell()
    var cell = tableView.dequeueReusableCell(withIdentifier: YNSliderCell.ID) as! YNSliderCell
    cell.lblPrice.text = "price"
    ynSliderCell.cell = cell
    ynSliderCell.height = 142
    return ynSliderCell
}

abedi-reza avatar Dec 18 '18 08:12 abedi-reza