From 3fada76eb9dd611cc63c0d060628cb62cf82e977 Mon Sep 17 00:00:00 2001 From: Stewen <784547228@qq.com> Date: Sun, 8 Oct 2023 10:59:20 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=9D=E8=AF=95=E8=A7=A3=E5=86=B3=E7=A9=BF?= =?UTF-8?q?=E9=80=8F=E9=97=AE=E9=A2=981?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../FinAppletExt/Common/Util/Map/FATMapViewController.m | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ios/Classes/FinAppletExt/Common/Util/Map/FATMapViewController.m b/ios/Classes/FinAppletExt/Common/Util/Map/FATMapViewController.m index f36d987..f258e33 100644 --- a/ios/Classes/FinAppletExt/Common/Util/Map/FATMapViewController.m +++ b/ios/Classes/FinAppletExt/Common/Util/Map/FATMapViewController.m @@ -88,6 +88,11 @@ static NSString *kUserAnnotationId = @"FATUserAnnotationViewId"; if (@available(iOS 12.0, *)) { isDark = (self.traitCollection.userInterfaceStyle == UIUserInterfaceStyleDark); } + ///bgView + UIView* bgView = [[UIView alloc] initWithFrame:self.view.bounds]; + bgView.backgroundColor = isDark ? UIColor.blackColor : UIColor.whiteColor; + [self.view addSubview:bgView]; + self.view.backgroundColor = isDark ? UIColor.blackColor : UIColor.whiteColor; [self.view addSubview:self.mapView]; self.mapView.frame = CGRectMake(0, 0, fatKScreenWidth, fatKScreenHeight - 200);