I want to add a small button beside my UITableView header that when pressed changes my table view cells to be editable (setting a UITextField in place for the detail label) that I can edit and then I click the button again and it reverts and saves.
Or add a button to the footer that just reads Save and have the cells always editable.
How can I do this?
Subclass
UITableViewCell, overridelayoutSubviewsto prepare different presentation of normal and editing mode (@property(nonatomic, getter=isEditing) BOOL editingto decide which). Or you can override it’s setEditing:animated, but never tried that.The button then should call something like