From 652243206427f35a256400a149a1734085824cb9 Mon Sep 17 00:00:00 2001
From: 陈嘉乐 <cjl@hdlchina.com.cn>
Date: 星期三, 02 九月 2020 17:35:03 +0800
Subject: [PATCH] 2020-09-02-4

---
 ZigbeeApp/Home.Ios/MainViewController.cs |   19 +++++++++++++------
 1 files changed, 13 insertions(+), 6 deletions(-)

diff --git a/ZigbeeApp/Home.Ios/MainViewController.cs b/ZigbeeApp/Home.Ios/MainViewController.cs
index 7ce0061..902e55c 100644
--- a/ZigbeeApp/Home.Ios/MainViewController.cs
+++ b/ZigbeeApp/Home.Ios/MainViewController.cs
@@ -12,6 +12,12 @@
         {
             base.ViewDidLoad();
 
+            //11.0鐗堟湰浠ヤ笅鑷姩鍋忕Щ鍙栨秷
+            if (!UIDevice.CurrentDevice.CheckSystemVersion(11, 0))
+            {
+                this.AutomaticallyAdjustsScrollViewInsets = false;
+            }
+
             if (NSLocale.PreferredLanguages[0].Contains("zh-"))
             {
                 //if (NSLocale.PreferredLanguages [0].Contains (@"zh-") && NSLocale.PreferredLanguages [0].Contains (@"-CN")) {
@@ -25,8 +31,9 @@
             Reachability.ReachabilityChanged += UpdateStatus;          
             //UIApplication.SharedApplication.SetStatusBarHidden(true, true);
             Shared.Application.RootFrameLayout = View;
-            
+
             Shared.Common.CommonPage.Instance.Show();
+
 
 
             UITapGestureRecognizer oTapRecognizer = new UITapGestureRecognizer();
@@ -40,9 +47,9 @@
 
         public override void ViewWillAppear(bool animated)
         {
-            //椤堕儴淇℃伅鏍忓瓧浣撻鑹蹭负榛戣壊锛�
+            //椤堕儴淇℃伅鏍忓瓧浣撻鑹蹭负榛戣壊
             UIApplication.SharedApplication.StatusBarStyle = UIStatusBarStyle.Default;
-            //椤堕儴淇℃伅鏍忓瓧浣撻鑹蹭负鐧借壊锛�
+            //椤堕儴淇℃伅鏍忓瓧浣撻鑹蹭负鐧借壊
             //UIApplication.SharedApplication.StatusBarStyle = UIStatusBarStyle.LightContent;
             //base.ViewWillAppear(animated);
         }
@@ -76,15 +83,15 @@
             internetStatus = Reachability.InternetConnectionStatus();
             if (internetStatus == NetworkStatus.NotReachable)//娌℃湁缃戠粶杩炴帴 0
             {
-                Shared.Common.CommonPage.nowNetworkMode = 0;
+                //Shared.Common.CommonPage.nowNetworkMode = 0;
             }
             else if (internetStatus == NetworkStatus.ReachableViaCarrierDataNetwork)//3,4G鐨勭綉缁滆繛鎺� 1
             {
-                Shared.Common.CommonPage.nowNetworkMode = 1;
+                //Shared.Common.CommonPage.nowNetworkMode = 1;
             }
             else if (internetStatus == NetworkStatus.ReachableViaWiFiNetwork)
             { //wifi鐨勭綉缁滆繛鎺� 2
-                Shared.Common.CommonPage.nowNetworkMode = 2;
+                //Shared.Common.CommonPage.nowNetworkMode = 2;
             }
         }
     }

--
Gitblit v1.8.0