Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem With Scrolling when scroll to Index #4

Open
maulikshah09 opened this issue Oct 8, 2022 · 0 comments
Open

Problem With Scrolling when scroll to Index #4

maulikshah09 opened this issue Oct 8, 2022 · 0 comments

Comments

@maulikshah09
Copy link

maulikshah09 commented Oct 8, 2022

Hello Sir,

I have Used your code.I have problem with scrolling.. if I remove sticky header then everything working perfect..I think you are changing content inset that's why the problem occurs.
check video.

https://drive.google.com/file/d/1oZIht4tCMhSlovsG_FeWvzIO9OqNmsQY/view?usp=sharing

tried to scroll to index

self?.tblResturantMenu.scrollToRow(at: IndexPath(row: 0, section: indexValue) , at: .top, animated: true)

tried to scroll to header

self?.tblResturantMenu.setContentOffset(CGPoint(x: 0, y: (self?.tblResturantMenu.rectForHeader(inSection: indexValue).minY ?? 0.0)) , animated: true)

both not working

Group tableview with header
Please help me one this.

thank you.

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

No branches or pull requests

1 participant