Skip to content

Commit

Permalink
fix iOS13 crash "The status bar window cannot be accessed from within…
Browse files Browse the repository at this point in the history
… an application."
  • Loading branch information
naijoug authored and guojian committed Mar 2, 2023
1 parent 92e38c2 commit 68cd20f
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,6 @@ - (void)doraemon_layoutSubviews

- (void)doraemonMetricsRecursiveEnable:(BOOL)enable
{
// 状态栏不显示元素边框
UIWindow *statusBarWindow = [[UIApplication sharedApplication] valueForKey:@"_statusBarWindow"];
if (statusBarWindow && [self isDescendantOfView:statusBarWindow]) {
return;
}

for (UIView *subView in self.subviews) {
[subView doraemonMetricsRecursiveEnable:enable];
}
Expand Down

0 comments on commit 68cd20f

Please sign in to comment.