ExpyTableView icon indicating copy to clipboard operation
ExpyTableView copied to clipboard

scrollViewDidScroll is not called

Open mariovillamizar opened this issue 8 years ago • 4 comments

I need to know when the tableview is scrolling, but scrollViewDidScroll is not called. Could you help me with this issue?

mariovillamizar avatar Oct 25 '17 15:10 mariovillamizar

Maybe this could help? https://stackoverflow.com/a/18280319

mariovillamizar avatar Oct 25 '17 15:10 mariovillamizar

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() } }

mariovillamizar avatar Oct 26 '17 20:10 mariovillamizar

Thanks! Will look into this soon.

okhanokbay avatar Mar 16 '18 01:03 okhanokbay

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.

addisonElliott avatar Jul 19 '18 04:07 addisonElliott