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

alertView内部有个循环引用的地方 #4

Closed
Oldfishking opened this issue Apr 14, 2020 · 3 comments
Closed

alertView内部有个循环引用的地方 #4

Oldfishking opened this issue Apr 14, 2020 · 3 comments

Comments

@Oldfishking
Copy link

image
758行,经测试LSTPopView是没有释放的,作者大大weak改一下下?

@Oldfishking
Copy link
Author

抱歉好像不是因为这个。。我再看看

@LoSenTrad
Copy link
Owner

@Oldfishking 用#define LSTPopViewWK(object) _weak typeof(object) wk##object = object; 这个快捷宏 弱化一下
例如:

LSTPopView *popView = [LSTPopView initWithCustomView:view popStyle:LSTPopStyleSmoothFromTop dismissStyle:LSTDismissStyleSmoothToBottom];
    popView.hemStyle = LSTHemStyleCenter;
    popView.adjustY = 10;
    popView.isClickFeedback = YES;
    LSTPopViewWK(popView)
    popView.bgClickBlock = ^{
        NSLog(@"点击了背景");
        [wk_popView dismiss];
    };

@LoSenTrad
Copy link
Owner

本周会发布新版本.敬请期待 奥利给

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

2 participants