Skip to content

Instantly share code, notes, and snippets.

Created January 4, 2016 19:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/d8a00393e0b546411ed5 to your computer and use it in GitHub Desktop.
Save anonymous/d8a00393e0b546411ed5 to your computer and use it in GitHub Desktop.
@IBAction func reloadData(sender: UIButton) {
// ask the server for new data
dataManager.refreshData { newData in
// update the data source and reload the table
self.tableItems = newData
self.tableView.reloadData()
UITestUtils.postCheckpoint(kDataRefreshedCheckpoint)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment