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

A way to disable/enable reordering on a tableviewCell. #65

Open
RabiaAwan opened this issue Jan 3, 2020 · 2 comments
Open

A way to disable/enable reordering on a tableviewCell. #65

RabiaAwan opened this issue Jan 3, 2020 · 2 comments

Comments

@RabiaAwan
Copy link

Can you please guide me how can i disable scrolling for specific table view cell. I want to enable/disable specific cells in tableview. Please let me know, is there any way to do that? I will be very thankful to you.

@adamshin
Copy link
Owner

adamshin commented Jan 9, 2020

You can prevent certain rows from being reordered by implementing the tableView(_:canReorderRowAt:) method in your reorder delegate, and returning false for those rows.

@nivbp7
Copy link

nivbp7 commented Aug 5, 2020

tableView(_:canReorderRowAt:) method is good for not allowing source cell to be moved.
But is there a way to disable dropping the cell at a certain destination IndexPath?

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

3 participants