I don’t want the swipe to delete the row but do something else.
What code do I need to add to the UITableViewController to have that happen
I don’t want the swipe to delete the row but do something else. What
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.
In looking at the docs, you might be able to code around the default behavior by not enabling the swipe to delete stuff, and looking at the example code mentioned in the UISwipeGestureRecognizer class.
I don’t know what you application is, but one thing I feel compelled to mention is that it’d be considered a design flaw to have an editable list where swipe didn’t do the delete behavior. This would break the principle of least astonishment, and confuse users.
That said, you might have a great use, I don’t know. Best of luck.