Skip to content

Commit 73bd303

Browse files
author
guojian
committed
fix iOS13 crash "The status bar window cannot be accessed from within an application."
1 parent 92e38c2 commit 73bd303

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

iOS/DoraemonKit/Src/Core/Plugin/UI/ViewMetrics/Function/UIView+DoraemonViewMetrics.m

-6
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,6 @@ - (void)doraemon_layoutSubviews
3838

3939
- (void)doraemonMetricsRecursiveEnable:(BOOL)enable
4040
{
41-
// 状态栏不显示元素边框
42-
UIWindow *statusBarWindow = [[UIApplication sharedApplication] valueForKey:@"_statusBarWindow"];
43-
if (statusBarWindow && [self isDescendantOfView:statusBarWindow]) {
44-
return;
45-
}
46-
4741
for (UIView *subView in self.subviews) {
4842
[subView doraemonMetricsRecursiveEnable:enable];
4943
}

0 commit comments

Comments
 (0)