Created
January 4, 2016 19:11
-
-
Save anonymous/d8a00393e0b546411ed5 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
@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