I'm adding a UIRefreshControl
to my UITableViewController
, but I can't figure out the addTarget:action:
syntax.
let refreshControl = UIRefreshControl()
refreshControl.addTarget(self, action:[what goes here?], forControlEvents: UIControlEvents.ValueChanged)
self.refreshControl = refreshControl
I tried searching the docs but didn't come up with a working example.