AutoScrollLabel icon indicating copy to clipboard operation
AutoScrollLabel copied to clipboard

bug when added to UITableViewCell and reloadData with same content

Open ccnyou opened this issue 10 years ago • 3 comments

当这个控件被当做一个 UITableViewCell 的subview时候,在 reloadData 时候指定了同一个 text,会出现不再滚动的问题

ccnyou avatar Dec 17 '15 19:12 ccnyou

Can you provide an in context code snippet?

cbess avatar Dec 22 '15 00:12 cbess

Sorry, it is noting about "out of screen". I upload a bug demo to my github here:https://github.com/ccnyou/CBAutoScrollLabelBugDemo. https://github.com/ccnyou/CBAutoScrollLabelBugDemo/blob/master/CBAutoScrollLabelDemo/CBAutoScrollLabelDemo/ViewController.m

when I reload cells of a tableview, and reset auto scroll label's text to a same string value, it will trigger this bug.

ccnyou avatar Dec 22 '15 07:12 ccnyou

@ccnyou Use 'refreshLabels' method after reloadData, could fix.

pantaopt avatar Dec 25 '19 10:12 pantaopt