We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea81328 commit cae2081Copy full SHA for cae2081
iOS/DoraemonKit/Src/Core/Plugin/ViewMetrics/Function/DoraemonViewMetricsConfig.m
@@ -45,16 +45,6 @@ - (void)setEnable:(BOOL)enable
45
[window hideDoraemonMetricsRecursive];
46
}
47
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
58
59
60
@end
0 commit comments