Skip to content

Commit cae2081

Browse files
committed
保留方案2,方案1删除
1 parent ea81328 commit cae2081

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

iOS/DoraemonKit/Src/Core/Plugin/ViewMetrics/Function/DoraemonViewMetricsConfig.m

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -45,16 +45,6 @@ - (void)setEnable:(BOOL)enable
4545
[window hideDoraemonMetricsRecursive];
4646
}
4747
}
48-
49-
// 每当状态栏发生变化(如: 时间跳动,4G切WIFI,横竖屏切换等),状态栏会走`layoutSubviews`方法,会导致状态栏也出现元素边框;而[UIApplication sharedApplication].windows数组内拿不到UIStatusBarWindow,关闭元素边框无法及时隐藏状态栏的边框线
50-
// 也可以在`UIView+DoraemonViewMetrics.h`内的`shouldShowMetricsView`中直接禁掉状态栏的元素边框
51-
NSString *statusBarString = [NSString stringWithFormat:@"_statusBarWindow"];
52-
UIWindow *statusBarWindow = [[UIApplication sharedApplication] valueForKey:statusBarString];
53-
if (statusBarWindow) {
54-
if (!enable) {
55-
[statusBarWindow hideDoraemonMetricsRecursive];
56-
}
57-
}
5848
}
5949

6050
@end

0 commit comments

Comments
 (0)