wei
2020-12-19 c5a873df96e4a797426e4dd5eafe5b43f7aea564
HDL-ON_iOS/ViewController.cs
@@ -36,16 +36,25 @@
            }
            HDL_ON.MainPage.Show();
            //侦测网络变化
            Reachability.ReachabilityChanged += UpdateStatus;
            try
            {
                //侦测网络变化
                Reachability.ReachabilityChanged += UpdateStatus;
            UITapGestureRecognizer oTapRecognizer = new UITapGestureRecognizer();
            oTapRecognizer.CancelsTouchesInView = false;
            oTapRecognizer.AddTarget(
                this,
                new ObjCRuntime.Selector("ViewTappedSelector:")
            );
            this.View.AddGestureRecognizer(oTapRecognizer);
                UITapGestureRecognizer oTapRecognizer = new UITapGestureRecognizer();
                oTapRecognizer.CancelsTouchesInView = false;
                oTapRecognizer.AddTarget(
                    this,
                    new ObjCRuntime.Selector("ViewTappedSelector:")
                );
                this.View.AddGestureRecognizer(oTapRecognizer);
                MainPage.InternetStatus = (int)Reachability.InternetConnectionStatus();
                //HDLCommon.Current.UpdateInternetStatus((int)Reachability.InternetConnectionStatus(), SharedMethod.SharedMethod.IsBackground);
            }
            catch
            {
            }
        }
        public override UIStatusBarStyle PreferredStatusBarStyle()
        {