PullToRefreshCoreText
PullToRefreshCoreText copied to clipboard
Can't scroll back without dispatch_after()
In ViewController.m
if using [weakScrollView finishLoading] without dispatch_after, the scrollView can't go back.
- (void)loadItems { __weak typeof(UIScrollView *) weakScrollView = self.scrollView; __weak typeof(self) weakSelf = self; // dispatch_time_t popTime = dispatch_time(DISPATCH_TIME_NOW, 3 * NSEC_PER_SEC); // dispatch_after(popTime, dispatch_get_main_queue(), ^(void){ // [weakSelf addNewItem]; [weakScrollView finishLoading]; // }); }