How to implement edit/delete behaviour on an embedded tableView?

Viewed 233

So I have an embedded tableview and I want to implement edit/delete behaviour: Embedded tableview

In my HomePageViewController I have:

override func viewDidLoad() {
    super.viewDidLoad()
    navigationItem.leftBarButtonItem = editButtonItem
}

However, all that happens is when I click on the edit button, it says done, and the embedded tableview does nothing at all. When I put the above code in the tableview nothing happens.

How do I get the navigation controller/parent view controller to recognise the embedded table view?

2 Answers
Related