-
Notifications
You must be signed in to change notification settings - Fork 32
Open
Description
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
Labels
No labels