Created
December 28, 2016 15:09
-
-
Save bobleesj/e4db4bd4eb257594367861eec844bc35 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ViewController: UIViewController, UITableViewDataSource, UITableViewDelegate { | |
@IBOutlet weak var tableView: UITableView! | |
let context = (UIApplication.shared.delegate as! AppDelegate).persistentContainer.viewContext | |
var tasks: [Task] = [] | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
tableView.delegate = self | |
tableView.dataSource = self | |
} | |
override func viewWillAppear(_ animated: Bool) { | |
getData() | |
tableView.reloadData() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment