I have a UITableView with 2 sections.
The UITableCells in the same section can be moved.
But I hope to forbid the movement between 2 UITableViewCells in different sections of a same UITableView.
Is it possible?
Welcome any commnet
Thanks
interdev
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In the
tableView:targetIndexPathForMoveFromRowAtIndexPath:toProposedIndexPath:This will cause the row to go back to it’s source indexpath if the section that it’s trying to move to, isn’t the same section as it’s original indexpath