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

Used in UITableView #1

Open
lugeek opened this issue Dec 31, 2020 · 3 comments
Open

Used in UITableView #1

lugeek opened this issue Dec 31, 2020 · 3 comments

Comments

@lugeek
Copy link

lugeek commented Dec 31, 2020

Is it ok in UITableView? I try it in UITableView. Some of cell is ok, but after scrolling a few cells, some of cells not loading the image.

@lugeek
Copy link
Author

lugeek commented Dec 31, 2020

Is it ok in UITableView? I try it in UITableView. Some of cell is ok, but after scrolling a few cells, some of cells not loading the image.

Not by UITableView. it is textContainer.lineBreakMode = NSLineBreakByTruncatingTail;. When the '...' appeared, the image gone.

@lugeek
Copy link
Author

lugeek commented Dec 31, 2020

Is it ok in UITableView? I try it in UITableView. Some of cell is ok, but after scrolling a few cells, some of cells not loading the image.

Not by UITableView. it is textContainer.lineBreakMode = NSLineBreakByTruncatingTail;. When the '...' appeared, the image gone.

Solved! 'invalidateLayoutForCharacterRange' need called 2 times, don't know why.

@fukemy
Copy link

fukemy commented Apr 5, 2021

did u tried to clear text when cell reusable?

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