JLChen
2020-12-11 f717f2c9c067b485f43743511abff0bcf71bfa9b
HDL-ON_iOS/AppDelegate.cs
@@ -166,7 +166,7 @@
        {
            Console.WriteLine("OnResignActivation");
            OnAppConfig.Instance.unlockTime = DateTime.Now;
            //BusSocket.Stop();
            HDL_ON.DriverLayer.UdpSocket._BusSocket.Stop();
        }
        public override void DidEnterBackground(UIApplication application)
@@ -179,10 +179,11 @@
        public override void WillEnterForeground(UIApplication application)
        {
            SharedMethod.SharedMethod.IsBackground = false;
            //BusSocket.Start();
            HDL_ON.DriverLayer.UdpSocket._BusSocket.Start();
            new AppUnlockPage().LoadPage();
            Console.WriteLine("WillEnterForeground");
            UIApplication.SharedApplication.ApplicationIconBadgeNumber = 0;
            HDL_ON.DriverLayer.Control.Ins.SearchLoaclGateway();
        }
        public override void WillTerminate(UIApplication application)
@@ -210,7 +211,14 @@
        {
            //Shared.Application.FontSize = 12;
            //取消EditText默认密码输入方式
            Shared.Application.IsEditTextContentTypePassword = false;
            //默认使用苹方字体
            Shared.Application.IsUsePingFang = true;
            ////默认禁止音乐服务
            //Shared.Application.IsMusicEnable = false;
            Window = new UIWindow(UIScreen.MainScreen.Bounds);
            rootViewController = new UINavigationController(new ViewController()) { NavigationBarHidden = true };
            Window.RootViewController = rootViewController;