                 CoreDataStack.sharedInstance.save()
             }
         }
-    }
-
-    override func viewWillAppear(animated: Bool) {
-        super.viewWillAppear(animated)
-
-        do {
-            try fetchedResultsController.performFetch()
-        } catch let fetchError as NSError {
-            print(fetchError)
-        }
-
-        table.reloadData()
-    }
-
-    override func viewDidAppear(animated: Bool) {
-        super.viewDidAppear(animated)
-
     }
 
     func showLoadingIndicator() {

                        Watchlist.saveMovie(existing)
                    }
                    CoreDataStack.sharedInstance.save()
                    table.reloadData()
                }
                break
            } else {


class ViewController: UIViewController, NSFetchedResultsControllerDelegate, UITableViewDelegate, UITableViewDataSource {

    var _fetchedResultsController: NSFetchedResultsController?

    var fetchedResultsController: NSFetchedResultsController {
        get {
            if _fetchedResultsController == nil {
                _fetchedResultsController = getFetchedResultsController()
            }
            return _fetchedResultsController!
        }
    }

