Skip to content

Problem With Scrolling when scroll to Index  #4

@maulikshah09

Description

@maulikshah09

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions