JZNavigationExtension icon indicating copy to clipboard operation
JZNavigationExtension copied to clipboard

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

Open mrbluesky888 opened this issue 4 years ago • 1 comments

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"]; }

mrbluesky888 avatar Nov 29 '20 13:11 mrbluesky888

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

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

CCBrother avatar Mar 15 '21 08:03 CCBrother