PullToRefreshCoreText icon indicating copy to clipboard operation
PullToRefreshCoreText copied to clipboard

Can't scroll back without dispatch_after()

Open bitnpc opened this issue 9 years ago • 0 comments

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]; // }); }

bitnpc avatar Mar 01 '16 04:03 bitnpc