Skip to content

Can't scroll back without dispatch_after() #8

@bitnpc

Description

@bitnpc

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

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