namanhams / RemoteImageTextAttachment

NSTextAttachment with remote image URL
MIT License
8 stars 0 forks source link

Used in UITableView #1

Open lugeek opened 3 years ago

lugeek commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

did u tried to clear text when cell reusable?