Can anyone please provide me a sample for table view drag & drop functionality?
Share
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.
When you create a subclass of UITableView controller, uncomment the following methods (or just add them if you are implementing
UITableViewdelegateanddataSourceprotocols in custom class):Now you just need an edit button to start editing mode (you can put it in viewDidLoad):
And inside that
tableView:moveRowAtIndexPath:toIndexPath:method you should update your model by rearranging array or whatever is holding your data.