Skip to content

Commit

Permalink
[Update] fix(Ios):fix "_statusBarWindow" with iOS16 crash didi#1088
Browse files Browse the repository at this point in the history
  • Loading branch information
Vanson committed Mar 10, 2023
1 parent df672df commit cce43df
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,12 @@ - (void)doraemon_layoutSubviews
- (void)doraemonMetricsRecursiveEnable:(BOOL)enable
{
// 状态栏不显示元素边框
UIWindow *statusBarWindow = [[UIApplication sharedApplication] valueForKey:@"_statusBarWindow"];
if (statusBarWindow && [self isDescendantOfView:statusBarWindow]) {
// UIWindow *statusBarWindow = [[UIApplication sharedApplication] valueForKey:@"_statusBarWindow"];
// if (statusBarWindow && [self isDescendantOfView:statusBarWindow]) {
// return;
// }
UIView * statusBarView = [[UIApplication sharedApplication] valueForKey:@"_statusBar"];
if(statusBarView && [self isDescendantOfView:statusBarView.window]){
return;
}

Expand Down

0 comments on commit cce43df

Please sign in to comment.