From 4e95d87dec43de5f7e8bd6ef579053c1fb44414d Mon Sep 17 00:00:00 2001 From: wxr <wxr@hdlchina.com.cn> Date: 星期日, 22 九月 2024 22:09:54 +0800 Subject: [PATCH] 西墨可视对讲 --- HDL_ON/UI/UI2/FuntionControlView/Video/VideoMainView.cs | 45 +++++++++++++++++++++++++++++++++++++-------- 1 files changed, 37 insertions(+), 8 deletions(-) diff --git a/HDL_ON/UI/UI2/FuntionControlView/Video/VideoMainView.cs b/HDL_ON/UI/UI2/FuntionControlView/Video/VideoMainView.cs index 835a0ed..8597513 100644 --- a/HDL_ON/UI/UI2/FuntionControlView/Video/VideoMainView.cs +++ b/HDL_ON/UI/UI2/FuntionControlView/Video/VideoMainView.cs @@ -24,16 +24,45 @@ #region 甯冨眬鐣岄潰 this.BackgroundColor = MusicColor.ViewColor; var topView = new TopView(); + //this.AddChidren(topView.TopFLayoutView()); + + + +#if __IOS__ + // 鑾峰彇褰撳墠绯荤粺鐨勭増鏈彿 + string systemVersion = UIKit.UIDevice.CurrentDevice.SystemVersion; + // 灏嗙郴缁熺増鏈瓧绗︿覆杞崲涓� Version 瀵硅薄 + System.Version currentVersion = new System.Version(systemVersion); + // 瀹氫箟 iOS 17 浣滀负姣旇緝鐨勭増鏈� + System.Version version17 = new System.Version(17, 0); + // 姣旇緝褰撳墠鐗堟湰鏄惁澶т簬 iOS 17 + if (currentVersion.CompareTo(version17) > 0) + { this.AddChidren(topView.TopFLayoutView()); - //if (xiMoVideoList.Count > 0) - //{ - // this.AddChidren(topView.TopFLayoutView()); - //} - //else - //{ - // this.AddChidren(topView.TopFLayoutView2()); - //} + } + else + { + if (xiMoVideoList.Count > 0) + { + this.AddChidren(topView.TopFLayoutView2()); + } + else + { + this.AddChidren(topView.TopFLayoutView()); + } + topView.topNameBtn.TextID = StringId.keshiduijiang; + } +#else + if (xiMoVideoList.Count > 0) + { + this.AddChidren(topView.TopFLayoutView2()); + } + else + { + this.AddChidren(topView.TopFLayoutView()); + } topView.topNameBtn.TextID = StringId.keshiduijiang; +#endif var pageView = new PageLayout() -- Gitblit v1.8.0