Skip to content

Refresh action is call twice without calling tableView.startPullToRefresh() #12

Description

@pablomiguelfernandez

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions