From 8698e87886737c8622930c2ba5af955a72757895 Mon Sep 17 00:00:00 2001 From: MJamil Date: Mon, 27 Jul 2015 15:48:28 -0700 Subject: [PATCH] Thank you for the great tutorial But in order to get it work, I also had to add a removeAtIndex for the logItems array. Perhaps I missed something? Thanks again! --- MyLog/ViewController.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/MyLog/ViewController.swift b/MyLog/ViewController.swift index 330423e..06bd7b4 100644 --- a/MyLog/ViewController.swift +++ b/MyLog/ViewController.swift @@ -193,6 +193,9 @@ class ViewController: UIViewController, UITableViewDataSource, UITableViewDelega // Refresh the table view to indicate that it's deleted self.fetchLog() + // Remove the item from the logItems array + logItems.removeAtIndex(indexPath.row); + // Tell the table view to animate out that row logTableView.deleteRowsAtIndexPaths([indexPath], withRowAnimation: .Automatic)