Skip to content

Commit 0207839

Browse files
author
yixiang
committed
解决高德地图的View使用元素边框线存在的问题
1 parent c5ed855 commit 0207839

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,12 @@ - (BOOL)shouldShowMetricsView
3434
return NO;
3535
}
3636

37+
//高德地图也有问题
38+
NSString *className = NSStringFromClass([self class]);
39+
if ([className hasPrefix:@"MA"]) {
40+
return NO;
41+
}
42+
3743
// 状态栏不需要显示元素边框
3844
NSString *statusBarString = [NSString stringWithFormat:@"_statusBarWindow"];
3945
UIWindow *statusBarWindow = [[UIApplication sharedApplication] valueForKey:statusBarString];

0 commit comments

Comments
 (0)