Skip to content

Instantly share code, notes, and snippets.

@nanoxd
Last active December 5, 2017 01:13
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 nanoxd/8b05bd5823cafb9c0082 to your computer and use it in GitHub Desktop.
Save nanoxd/8b05bd5823cafb9c0082 to your computer and use it in GitHub Desktop.
Setup UIRefreshControl
lazy var refreshControl: UIRefreshControl = {
let refreshControl = UIRefreshControl()
refreshControl.addTarget(self, action: "handleRefresh:", forControlEvents: UIControlEvents.ValueChanged)
return refreshControl
}()
@objc func handleRefresh() {
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment