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

Thread 1: "Access to _UIBarBackground's _backgroundEffectView ivar is prohibited. This is an application bug" #110

Open
mrbluesky888 opened this issue Nov 29, 2020 · 1 comment

Comments

@mrbluesky888
Copy link

Thread 1: "Access to _UIBarBackground's _backgroundEffectView ivar is prohibited. This is an application bug"

  • (UIView *)jz_backgroundView {
    if (@available(iOS 10, *)) {
    return [self valueForKeyPath:@"_backgroundView._backgroundEffectView"];
    }
    return [self valueForKeyPath:@"_backgroundView"];
    }
@CCBrother
Copy link

我也遇到了。13以上需要适配

  • (UIView *)jz_backgroundView {
    if (@available(iOS 13, *)) {
    return self.subviews.firstObject;
    }
    return [self valueForKeyPath:@"_backgroundView"];
    }

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