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);
|
}
|
}
|
}
|