From b69d7735274b8d0f741da8a6bb8b8e1347477a5a Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期四, 19 三月 2020 17:14:16 +0800 Subject: [PATCH] 20200319 --- HDL-ON_iOS/AppDelegate.cs | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/HDL-ON_iOS/AppDelegate.cs b/HDL-ON_iOS/AppDelegate.cs index 3950f3a..2e3dc19 100644 --- a/HDL-ON_iOS/AppDelegate.cs +++ b/HDL-ON_iOS/AppDelegate.cs @@ -149,8 +149,10 @@ public override void DidEnterBackground(UIApplication application) { SharedMethod.SharedMethod.IsBackground = true; + HDL_ON.Entity.DB_ResidenceData.residenceData.SaveResidenceData(); Console.WriteLine("DidEnterBackground"); } + public override void WillEnterForeground(UIApplication application) { @@ -179,6 +181,7 @@ SharedMethod.SharedMethod.sharedApp = application; Shared.Application.IsGpsEnable = false; //NSString* nsCount = [[NSLocale currentLocale] objectForKey: NSLocaleCountryCode]; + application.StatusBarStyle = UIStatusBarStyle.DarkContent; string nsCount = NSLocale.CurrentLocale.CountryCode; if (nsCount != UserConfig.Instance.CountryCode) @@ -227,7 +230,6 @@ { //RemoteInfo.Current.ReadMsgList(true); } - application.StatusBarStyle = UIStatusBarStyle.Default; //Harpy.Harpy.SharedInstance.PresentingViewController = this.Window.RootViewController; //Harpy.Harpy.SharedInstance.WeakDelegate = this; -- Gitblit v1.8.0