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