Skip to content

Preventing second refresh #8

@tosbaha

Description

@tosbaha

I am trying to prevent second refresh before finishing the first one.

    override func viewDidLoad() {
        super.viewDidLoad()
        refreshController.indicator.lineColor = UIColor.selectedOrange()
        refreshController.addTarget(self, action: "onRefresh", forControlEvents: .ValueChanged)
        tableView.addSubview(refreshController)
}

    func onRefresh() {
        if refreshController.refreshing {
            print("Returning")
            return
        } 
 // do the refresh
}

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