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

How to disable reorder functionality in one section ? #72

Open
VikasPrajapatiSA opened this issue Jul 21, 2020 · 2 comments
Open

How to disable reorder functionality in one section ? #72

VikasPrajapatiSA opened this issue Jul 21, 2020 · 2 comments

Comments

@VikasPrajapatiSA
Copy link

When I move cell one section to another section then it's crash. Is there any solution for this?

@Saulenco
Copy link

Saulenco commented Sep 9, 2020

Hi,
implement func tableView(_ tableView: UITableView, canReorderRowAt indexPath: IndexPath) -> Bool and limit your sections there

@vantien2905
Copy link

Hi, implement func tableView(_ tableView: UITableView, canReorderRowAt indexPath: IndexPath) -> Bool and limit your sections there

After disable section you need implement: func tableView(_ tableView: UITableView, targetIndexPathForReorderFromRowAt sourceIndexPath: IndexPath, to proposedDestinationIndexPath: IndexPath) -> IndexPath to make sure proposedDestinationIndexPath different with disable section.

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

4 participants
@Saulenco @vantien2905 @VikasPrajapatiSA and others