YNExpandableCell
YNExpandableCell copied to clipboard
Updating values of expandable cells
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
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
}