Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

循环调用死循环? #69

Open
AppLog opened this issue Feb 26, 2021 · 1 comment
Open

循环调用死循环? #69

AppLog opened this issue Feb 26, 2021 · 1 comment

Comments

@AppLog
Copy link

AppLog commented Feb 26, 2021

在UIView+Empty.m文件中的第192行,有如下代码:

- (void)ly_reloadData{
    [self ly_reloadData];
    [self getDataAndSet];
}

看样子,是死循环啊?!bug?

@AppLog
Copy link
Author

AppLog commented Feb 26, 2021

试了下,如果把上面的调用行注释掉,又会出闪退
以下代码处会闪退:

- (LYEmptyView *)ly_emptyView{
    return  objc_getAssociatedObject(self, &kEmptyViewKey);
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant