Hi! I have adde the Refresher framework to my project, great work! But I am facing a problem.
I've just added a tableView to a ViewController and create the Outlet, delegate and datasource and on viewDidLoad I have added:
tableView.addPullToRefreshWithAction {
NSOperationQueue().addOperationWithBlock {
sleep(2)
NSOperationQueue.mainQueue().addOperationWithBlock {
self.tableView.stopPullToRefresh()
}
}
}
The problem is that automatically when the view is load, the refresh action is done twice!
I am not calling tableView.startPullToRefresh() at any point of my code, if I had the tableView.startPullToRefresh() on viewDidAppear as in the demo project the refresh action will be ejecute three times!
Any idea of what the problem could be?
Thanks very much for your help
Hi! I have adde the Refresher framework to my project, great work! But I am facing a problem.
I've just added a tableView to a ViewController and create the Outlet, delegate and datasource and on viewDidLoad I have added:
tableView.addPullToRefreshWithAction {
NSOperationQueue().addOperationWithBlock {
sleep(2)
NSOperationQueue.mainQueue().addOperationWithBlock {
self.tableView.stopPullToRefresh()
}
}
}
The problem is that automatically when the view is load, the refresh action is done twice!
I am not calling tableView.startPullToRefresh() at any point of my code, if I had the tableView.startPullToRefresh() on viewDidAppear as in the demo project the refresh action will be ejecute three times!
Any idea of what the problem could be?
Thanks very much for your help