wxr
2021-11-18 dd3f6db0cb3c242758ab0000a0513e093f02531c
HDL-ON_iOS/Other/SkipControl.cs
@@ -1,5 +1,7 @@
using System;
using CoreGraphics;
using Intents;
using IntentsUI;
using Other.Siri;
using UIKit;
@@ -16,21 +18,11 @@
            var user = new SiriBaseView();
            user.View.BackgroundColor = UIColor.Magenta;
            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.NavigationBarHidden = true;
            HDL_ON_iOS.AppDelegate.rootViewController.NavigationBarHidden = false;
            HDL_ON_iOS.AppDelegate.rootViewController.PushViewController(user, true);
            btn.TouchUpInside += (sender, e) =>
            {
                HDL_ON_iOS.AppDelegate.rootViewController.SetNavigationBarHidden(HDL_ON_iOS.AppDelegate.rootViewController.NavigationBarHidden ? false : true, true);
            };
            user.View.AddSubview(btn);
        }
    }
}