Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating values of expandable cells #21

Open
usamabinattique opened this issue Dec 15, 2017 · 1 comment
Open

Updating values of expandable cells #21

usamabinattique opened this issue Dec 15, 2017 · 1 comment

Comments

@usamabinattique
Copy link

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

@abedi-reza
Copy link

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
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants