From f1173fc28f51e5845a0d1f0b0f6280a714696fda Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期二, 11 四月 2023 13:12:38 +0800 Subject: [PATCH] 增加IOS关掉根view以外的界面 --- HDL_ON/UI/MainPage.cs | 14 +++++++++++--- 1 files changed, 11 insertions(+), 3 deletions(-) diff --git a/HDL_ON/UI/MainPage.cs b/HDL_ON/UI/MainPage.cs index 8e638a6..8c30533 100644 --- a/HDL_ON/UI/MainPage.cs +++ b/HDL_ON/UI/MainPage.cs @@ -26,7 +26,7 @@ /// <summary> /// 鐗堟湰鍙� /// </summary> - public static string VersionString = "1.6.3"; + public static string VersionString = "1.7"; ///// <summary> ///// 瀹㈡埛绔被鍨� ///// </summary> @@ -211,7 +211,10 @@ /// </summary> public static void GoLoginPage(UserInfo userInfo = null) { - BaseView.RemoveAll(); + for (int i = 0; i < BaseView.ChildrenCount; i++) + { + BaseView.GetChildren(i).RemoveFromParent(); + } BaseView.BackgroundColor = CSS_Color.BackgroundColor; var fisrtView = new UI.UI1Login.LoginPage(); fisrtView.BackgroundColor = CSS_Color.MainBackgroundColor; @@ -226,7 +229,11 @@ /// <param name="pageShowEvent">涓婚〉鏄剧ず涔嬪悗瑙﹀彂鐨勪簨浠�(娌℃湁浣忓畢鐨勮瘽,鍒欎笉浼氳Е鍙�)</param> public static void GoUserPage(bool downloadData, bool isFirstOpen = false, Action pageShowEvent = null) { - BaseView.RemoveAll(); + + for (int i = 0; i < BaseView.ChildrenCount; i++) + { + BaseView.GetChildren(i).RemoveFromParent(); + } #region 鍚庨��浜嬩欢 BasePageView = new PageLayout(); BasePageView.ScrollEnabled = false; @@ -405,6 +412,7 @@ { if (waitPage != null) { + waitPage.Hide(); waitPage.RemoveFromParent(); waitPage = null; } -- Gitblit v1.8.0