TLTagsControl icon indicating copy to clipboard operation
TLTagsControl copied to clipboard

Scrolling Issue.

Open munibsiddiqui opened this issue 9 years ago • 6 comments

In sample application , if you scroll the demoTagsControl several time it will get stuck and will stop scrolling anymore.

Please help.

munibsiddiqui avatar Nov 16 '15 08:11 munibsiddiqui

More specifically its happening for TLTagsControl which is set to be TLTagsControlModeList.

munibsiddiqui avatar Nov 16 '15 09:11 munibsiddiqui

Because author layout the subviews in method - (void)layoutSubviews, it needs some time to calculate frames. And when UIScrollView scroll, - (void)layoutSubviews is called constantly. So get stuck.

mayqiyue avatar Jul 21 '16 09:07 mayqiyue

@mayqiyue so what is solution ?

ancheng1114 avatar Jan 13 '17 09:01 ancheng1114

I just use that TLTagsControl which is set to be TLTagsControlModeList and get issue on scrolling that i found code for setup scrollview contain size in layoutSubviews which is called each time on scroll and i dont think its need to place code in that method so i just move code of layoutSubviews to reloadTagSubviews at bottom and its working good

nitingohel avatar Jul 18 '17 13:07 nitingohel

@nitingohel Can you provide example code?

alizainprasla avatar Oct 04 '17 18:10 alizainprasla

there is no example just move code of layoutsubviews to reloadTagSubview thats it

nitingohel avatar Oct 05 '17 06:10 nitingohel