Possible Duplicate:
iPhone: modifying view when user shakes
hi Frnz,
i want to delete multiple rows from a table view based on users selection.obviously i cant use didSelectRowAtIndexPath method coz it will be called for every row selected. i want to allow user to select multiple rows for deletion and then delete them in one go...Is it possible if yes then how to go about it.Also i am using a single view based project 开发者_StackOverflowand i want the header of table view changed to "Delete" on the same view when the user want to delete the rows from the view.
Thx
You can still use didSelectRowAtIndexPath: but you need to keep a little state for each row selected for deletion. Once you have set the state for each row selected for deletion, and the user triggers the delete all action, you can remove all the rows that have their state set.
精彩评论