ali312 / TLTagsControl

A nice and simple tags input control for iOS
MIT License
370 stars 77 forks source link

Scrolling Issue. #13

Open munibsiddiqui opened 8 years ago

munibsiddiqui commented 8 years ago

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

Please help.

munibsiddiqui commented 8 years ago

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

mayqiyue commented 8 years ago

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.

ancheng1114 commented 7 years ago

@mayqiyue so what is solution ?

nitingohel commented 7 years ago

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

alizainprasla commented 7 years ago

@nitingohel Can you provide example code?

nitingohel commented 7 years ago

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