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

Height is not calculated correctly for table view cells when text or detail text labels contain multiline text #33

Closed
vmagaziy opened this issue Aug 23, 2017 · 2 comments

Comments

@vmagaziy
Copy link

Use sample application and change text of textLabel for UITableView to make it long enough and set textLabel.numberOfLines="0" to make text label multiline and observe the following:

simulator screen shot 23 aug 2017 14 10 29

The same issue can be observed when detailTextLabel contains multiline text. It's a bug of iOS (for additional details see this workaround or this discussion), but apparently it gets fixed as of iOS 11, so it makes sense to address calculation for this case as well.

@nicklockwood
Copy link
Owner

I'll see what I can do about this. In the meantime, adding your own UILabel to the cell as a subview should work correctly.

@nicklockwood
Copy link
Owner

OK, I believe this is fixed in 0.4.17. I'm still seeing some funky spacing when using multiline detailTextLabel, but it sounds like that's a known issue in iOS per your comment.

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