I have a UIViewController, and within that view i have UITableView added in IB
The UITableView displays the items from my array beautifully
I would like to be able to edit the items i.e delete them
BUT The UITableView does not have a navigation bar, and i am not using a navigation controller within this app i am just adding and removing views manually.
What i would like to do is place an "edit" button somewhere else within the view … is this possible? and how might i go about this?
Best Answer
Put a button somewhere. In an action connected to it set TableView's
editing
property to YES - it should work fine. You also need to implement delegate'seditingStyleForRowAtIndexPath
method (return UITableViewCellEditingStyleDelete to allow to delete cells).