wxr
2021-11-19 0edfc730dafa1407efdeb8a6eed4c88c21aa1963
HDL-ON_iOS/Other/SkipControl.cs
@@ -1,5 +1,6 @@
using 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);
        }
    }
}