Closed YoungheeJang closed 4 years ago
Hi @YoungheeJang
I'm not sure about this change, the followScrollView
should not be called more than once without calling stopFollowingScrollView
, because there's some setup that needs to be tore down between calls. Were you calling stopFollowingScrollView
in your app?
Thanks you for your feedback @andreamazz
Were you calling stopFollowingScrollView in your app?
Now I am calling
stopFollowingScrollView
once when calledviewWillDisappear
. and I am callingfollowScrollView
inviewWillAppear
and dynamicfollowScrollView
at the same ViewController.
I have been used AMScrollingNavbar
in my projects.
MainViewController has many tab menu and tab's subViews, and subViews has scrollView. So I have to call dynamic followScrollView
function when subView change(changed scrollView). And It has been worked well.
Since when, It is not working.
Now. I add my source stopFollowingScrollView
before call followScrollView
always, Then It is working now.
is it right?
Yes, you should call stop between "follow" calls, ideally you should call stop when the view disappears (i.e. when you switch a tab), and call follow again on appear.
Thank you @andreamazz !! Have a good day.
Hello.
I used followScrollView function in my project. but followScrollView function have not been working. so followScrollView function fixed.
Because This logic can not passed guard block when reset a scrollableView.
I think, If self.scrollableView is not nil, play switch. And reset the new scrollableView always.
How about my propose?