-
Notifications
You must be signed in to change notification settings - Fork 76
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
two tableview problem #71
Comments
This library only allows dragging cells within a single tableview. If you need to drag cells between multiple table views, you should use the new iOS drag-and-drop apis. |
Actually, I asked a different question. I don't wanna use to drag cells between multiple table views. I use as a single each tableviews. Only I have two table views. I drag from row (1,2,3,4,5) to row 0 on my first tableview and it's working. but the second tableview is not working if I drag from (1,2,3,4,5) to row 0. I attached a video about the problem. |
I see, I misread your question. Do you have the same view controller as the reorder delegate for both tableviews? It looks like that might be the issue. |
I added reorder delegate for both tableviews on the same view controller. I mean yes |
In your extension MyViewController: TableViewReorderDelegate {
func tableView(_ tableView: UITableView,
reorderRowAt sourceIndexPath: IndexPath,
to destinationIndexPath: IndexPath) {
if tableView == firstTableView {
// Update first data model
} else if tableView == secondTableView {
// Update second data model
}
}
} |
Exactly, like this. If drag cells from row (1,2,3,...) to 0, this fuction doesnt work. |
Hi,
I have two tableviews in the vc. I can move from row 1 to row 0 in my first tableview but if I want to move from row 1 to row 0 in my second tableview, it doesn't work.
Can u help me about this problem?
The text was updated successfully, but these errors were encountered: