From 69b99c484a8f7137d3e34bbced549ae719263639 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elvis=20Nu=C3=B1ez?= Date: Sun, 13 Dec 2015 16:43:07 +0100 Subject: [PATCH] Remove self --- AppNet/AppDelegate.swift | 4 ++-- AppNet/ViewController.swift | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/AppNet/AppDelegate.swift b/AppNet/AppDelegate.swift index 552122ab..849e5071 100644 --- a/AppNet/AppDelegate.swift +++ b/AppNet/AppDelegate.swift @@ -15,11 +15,11 @@ class AppDelegate: UIResponder, UIApplicationDelegate { } func applicationDidEnterBackground(application: UIApplication) { - self.dataStack.persistWithCompletion(nil) + dataStack.persistWithCompletion(nil) } func applicationWillTerminate(application: UIApplication) { - self.dataStack.persistWithCompletion(nil) + dataStack.persistWithCompletion(nil) } } diff --git a/AppNet/ViewController.swift b/AppNet/ViewController.swift index 398ba342..1394158d 100644 --- a/AppNet/ViewController.swift +++ b/AppNet/ViewController.swift @@ -73,8 +73,8 @@ extension ViewController { } override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell { - let cell = self.tableView.dequeueReusableCellWithIdentifier(CellIdentifier) - let data = self.items[indexPath.row] + let cell = tableView.dequeueReusableCellWithIdentifier(CellIdentifier) + let data = items[indexPath.row] cell?.textLabel?.text = data.text // Workaround: The proper value of `numberOfLines` should be 0