Skip to content
This repository has been archived by the owner on Nov 5, 2020. It is now read-only.

scrollViewDidScroll is not called #16

Open
mariovillamizar opened this issue Oct 25, 2017 · 4 comments
Open

scrollViewDidScroll is not called #16

mariovillamizar opened this issue Oct 25, 2017 · 4 comments
Milestone

Comments

@mariovillamizar
Copy link

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

@mariovillamizar
Copy link
Author

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

@mariovillamizar
Copy link
Author

mariovillamizar commented Oct 26, 2017

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

@okhanokbay okhanokbay added this to the 1.0.1 milestone Mar 8, 2018
@okhanokbay
Copy link
Owner

Thanks! Will look into this soon.

@addisonElliott
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants