scrollViewDidScroll is not called
I need to know when the tableview is scrolling, but scrollViewDidScroll is not called. Could you help me with this issue?
Maybe this could help? https://stackoverflow.com/a/18280319
If someone needs this, for the moment I have solved this code:
func scrollViewDidScroll() { let when = DispatchTime.now() + 0.01 DispatchQueue.main.asyncAfter(deadline: when) { let contentSize = self.amenitiesTableView.contentSize self.scrollViewDidScroll() } }
Thanks! Will look into this soon.
I believe I am experiencing a similar issue with scrollViewDidEndDeceleration.
The responds function is called and returns true but forwardingTarget is not called! Upon further testing, UITableView.respondsTo(selector: aSelector) for the function returns true indicating that there is a function to call in UITableView? This prevents the forwardingTarget from being called.
After many hours of searching, I was unable to find a solution. I think the best plan of action is to manually implement functions in the ExpyTableView that calls the custom delegate. The forwardingTarget and responds functions can be left there in case there are new or forgotten functions so that it may forward them.