AutoScrollLabel
AutoScrollLabel copied to clipboard
bug when added to UITableViewCell and reloadData with same content
当这个控件被当做一个 UITableViewCell 的subview时候,在 reloadData 时候指定了同一个 text,会出现不再滚动的问题
Can you provide an in context code snippet?
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 Use 'refreshLabels' method after reloadData, could fix.