Skip to content
This repository has been archived by the owner on Nov 5, 2020. It is now read-only.

Section cell multi-line not supported #32

Open
zishanj opened this issue Aug 12, 2018 · 3 comments
Open

Section cell multi-line not supported #32

zishanj opened this issue Aug 12, 2018 · 3 comments

Comments

@zishanj
Copy link

zishanj commented Aug 12, 2018

For some reason the section cell does not support multi-line label with wordwrap. It always show single line. May be its not auto-adjusting the height of the cell, although I am using tableView.rowHeight = UITableViewAutomaticDimension. Whereas child rows are auto-adjusting their height.

Is there any workaround?

@okhanokbay
Copy link
Owner

Did you try returning automatic dimension from delegate method?

func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
    return UITableViewAutomaticDimension
}

@zishanj
Copy link
Author

zishanj commented Aug 12, 2018

In addition to your suggestion, I have also tried heightForHeaderInSection but no luck. Child rows are auto adjusting their height but there is some issue with Header section.

@Yudi26
Copy link

Yudi26 commented Nov 3, 2020

@zishanj I am also facing same issue.

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

No branches or pull requests

3 participants