UItableView - UITableViewCell change editingStyle dynamically
i have a table which has an edit mode. When in edit mode the rows have an uitextfield. If something is entered in the textfield i add a row below the row with the textfield. Everything is fine. Now i want to change the editStyle of the cell with the textfield from UITableViewCellEditingStyleN开发者_JAVA技巧one
to UITableViewCellEditingStyleDelete
. I tried it with reloading the cell but then the table has some strange scroll behavior then.
Is there any other way to change the EditingStyle?
Try this
UITableView deleteRowsAtIndexPaths doesn't delete row
精彩评论