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 | 30 +++++++++++++++++++----------- 1 files changed, 19 insertions(+), 11 deletions(-) diff --git a/HDL-ON_iOS/Other/SkipControl.cs b/HDL-ON_iOS/Other/SkipControl.cs index 0de65c3..7bcbc47 100644 --- a/HDL-ON_iOS/Other/SkipControl.cs +++ b/HDL-ON_iOS/Other/SkipControl.cs @@ -1,5 +1,8 @@ 锘縰sing System; using CoreGraphics; +using Foundation; +using Intents; +using IntentsUI; using Other.Siri; using UIKit; @@ -13,22 +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); - var btn = UIButton.FromType(UIButtonType.System); - btn.Frame = new CGRect(20, 200, 280, 44); - btn.SetTitle("Click Me", UIControlState.Normal); + //HDL_ON_iOS.AppDelegate.rootViewController.PushViewController(user, true); - HDL_ON_iOS.AppDelegate.rootViewController.NavigationBarHidden = true; - HDL_ON_iOS.AppDelegate.rootViewController.NavigationBarHidden = false; - HDL_ON_iOS.AppDelegate.rootViewController.PushViewController(user, true); - btn.TouchUpInside += (sender, e) => + 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); - user.View.AddSubview(btn); } } } -- Gitblit v1.8.0