From 0edfc730dafa1407efdeb8a6eed4c88c21aa1963 Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期五, 19 十一月 2021 16:40:45 +0800 Subject: [PATCH] siri --- HDL-ON_iOS/Other/SkipControl.cs | 24 +++++++++++++++++++----- 1 files changed, 19 insertions(+), 5 deletions(-) diff --git a/HDL-ON_iOS/Other/SkipControl.cs b/HDL-ON_iOS/Other/SkipControl.cs index 408138f..7bcbc47 100644 --- a/HDL-ON_iOS/Other/SkipControl.cs +++ b/HDL-ON_iOS/Other/SkipControl.cs @@ -1,5 +1,6 @@ 锘縰sing System; using CoreGraphics; +using Foundation; using Intents; using IntentsUI; using Other.Siri; @@ -15,14 +16,27 @@ public void SkipSiriView() { - var user = new SiriBaseView(); - user.View.BackgroundColor = UIColor.Magenta; + //var user = new SiriBaseView(); + //user.View.BackgroundColor = new UIColor(242, 243, 247, 1); - HDL_ON_iOS.AppDelegate.rootViewController.NavigationBarHidden = true; - HDL_ON_iOS.AppDelegate.rootViewController.NavigationBarHidden = false; - HDL_ON_iOS.AppDelegate.rootViewController.PushViewController(user, true); + //HDL_ON_iOS.AppDelegate.rootViewController.PushViewController(user, true); + NSMutableArray list = new NSMutableArray(); + foreach (var localScene in HDL_ON.Entity.FunctionList.List.scenes) + { + list.Add(new HDLSceneSiri.HDLSiriSceneModel() + { + UserSceneId = localScene.userSceneId, + Name = localScene.name, + }); + } + var vc = new HDLSceneSiri.HDLSiriSceneListViewController(); + vc.DataSource = list; + //vc.TitleName + //PresentViewController(vc, true, null); + HDL_ON_iOS.AppDelegate.rootViewController.PushViewController(vc, true); + } } } -- Gitblit v1.8.0