gontovnik / DGElasticPullToRefresh

Elastic pull to refresh for iOS developed in Swift
https://medium.com/@gontovnik/elastic-view-animation-or-how-i-built-dgelasticpulltorefresh-269a3ba8636e#.9dioekqv6
MIT License
3.77k stars 442 forks source link

when i run the demo ,i add startLoading ,found bug #44

Open karmaios opened 8 years ago

karmaios commented 8 years ago

12

karmaios commented 8 years ago

if i try like this ,it work

dispatch_after(dispatch_time(DISPATCH_TIME_NOW, Int64(0.1 * Double(NSEC_PER_SEC))), dispatch_get_main_queue(), { self.tableView.dg_startLoading() dispatch_after(dispatch_time(DISPATCH_TIME_NOW, Int64(10 * Double(NSEC_PER_SEC))), dispatch_get_main_queue(), { self.tableView.dg_stopLoading() })

    })