wxr
2021-11-18 0de3ac9b3e2afea565dd9d028a89986a2e0a377d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
using System;
using CoreGraphics;
using Other.Siri;
using UIKit;
 
namespace Other
{
    public class SkipControl
    {
        public SkipControl()
        {
        }
 
        public void SkipSiriView()
        {
            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);
        }
    }
}