I wonder how i can use UIRefreshController for a UITableView inside a UIViewController.
I want to implement pull-to-refresh functionality to TableView but i don't have a TableViewController.
Is there a way to do this in xcode 6 (swift)
Of course you can do this. Initiate a RefreshControl and simply put it as subview of your tableview. You don't necessarily need a UITableViewController for this.
EDIT:
Try something like this:
let control = UIRefreshControl()
control.addTarget(self, action: "action", forControlEvents: .ValueChanged)
tableView.addSubview(control)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With