本文整理汇总了C#中UINavigationController.SetViewControllers方法的典型用法代码示例。如果您正苦于以下问题:C# UINavigationController.SetViewControllers方法的具体用法?C# UINavigationController.SetViewControllers怎么用?C# UINavigationController.SetViewControllers使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类UINavigationController
的用法示例。
在下文中一共展示了UINavigationController.SetViewControllers方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: FinishedLaunching
public override void FinishedLaunching(UIApplication application)
{
Window = new UIWindow (UIScreen.MainScreen.Bounds);
var signPDFController = new SignViewController ();
signPDFController.View.BackgroundColor = UIColor.White;
UINavigationController nav = new UINavigationController ();
nav.SetViewControllers(new UIViewController[] { signPDFController }, true);
Window.RootViewController = nav;
Window.MakeKeyAndVisible ();
}
示例2: FinishedLaunching
public override bool FinishedLaunching(UIApplication app, NSDictionary options)
{
Window = new UIWindow(UIScreen.MainScreen.Bounds);
UIApplication.SharedApplication.SetStatusBarStyle(UIStatusBarStyle.LightContent, false);
UINavigationController navController = new UINavigationController();
navController.SetNavigationBarHidden(true, false);
navController.SetViewControllers(new UIViewController[] { new SnakeViewController() }, true);
// Show
Window.RootViewController = navController;
Window.MakeKeyAndVisible();
return true;
}
示例3: RegisterButtonClicked
partial void RegisterButtonClicked(Foundation.NSObject sender)
{
if (!ShowedEULA)
{
UINavigationController nc = new UINavigationController();
nc.NavigationBar.BackgroundColor = UIColor.White;
nc.NavigationBar.TintColor = UIColor.Blue;
nc.NavigationBar.BarTintColor = UIColor.White;
WebViewController vc = new WebViewController();
vc.NavigationItem.RightBarButtonItem = new UIBarButtonItem(Strings.accept, UIBarButtonItemStyle.Plain, delegate
{
nc.DismissViewController(true, delegate
{
ShowedEULA = true;
PerformSegue("Landing2Register", this);
});
});
vc.NavigationItem.LeftBarButtonItem = new UIBarButtonItem(Strings.cancel, UIBarButtonItemStyle.Plain, delegate
{
nc.DismissViewController(true, null);
});
vc.NavigationItem.RightBarButtonItem.Enabled = false;
vc.NavigationItem.LeftBarButtonItem.Enabled = false;
vc.URL = Strings.web_url_base + Strings.web_url_privacy_policy;
nc.SetViewControllers(new UIViewController[] { vc }, false);
this.PresentViewController(nc, true, null);
}
else {
PerformSegue("Landing2Register", this);
}
}
示例4: FinishedLaunching
public override bool FinishedLaunching (UIApplication application, NSDictionary option)
{
UIApplication.SharedApplication.SetMinimumBackgroundFetchInterval (UIApplication.BackgroundFetchIntervalMinimum);
TCLocalizabled.initialize ();
NSNotificationCenter.DefaultCenter.AddObserver (new NSString("finshedSplash"), finshedSplash);
// Load SplashScreen
UINavigationController navigationVC = new UINavigationController ();
navigationVC.NavigationBar.Hidden = true;
TCSplashScreenViewController splashSreenVC = new TCSplashScreenViewController ();
splashSreenVC.View.Frame = new CoreGraphics.CGRect (0.0f, 0.0f, 320.0f, 480.0f);
navigationVC.SetViewControllers (new UIViewController[] { splashSreenVC }, true);
this.Window.RootViewController = navigationVC;
this.Window.MakeKeyAndVisible ();
return true;
}
示例5: signOut
// Sign Out
public void signOut(UIStoryboard storyBoard)
{
MApplication.getInstance ().isLogedIn = false;
TCGlobals.getInstance.isAllowShowAlert = false;
TCNotificationCenter.defaultCenter.observers.Clear ();
MApplication.getInstance ().isConnectedSignalR = false;
UIApplication.SharedApplication.NetworkActivityIndicatorVisible = false;
new System.Threading.Thread (new System.Threading.ThreadStart (() => {
if (TCGlobals.getInstance.currentSignalR != null)
TCGlobals.getInstance.currentSignalR.stop ();
})).Start ();
TCLogOutHelper logoutHelper = new TCLogOutHelper (UIApplication.SharedApplication.KeyWindow.RootViewController);
logoutHelper.logOut ();
TCViewIdentity.getInstance.setObjectForKey ("TCMainTabViewController", null);
TCViewIdentity.getInstance.setObjectForKey ("TCBookingAlertViewController", null);
TCViewIdentity.getInstance.setObjectForKey ("TCBookingConfirmedViewController", null);
TCViewIdentity.getInstance.setObjectForKey ("TCBookingPastViewController", null);
TCViewIdentity.getInstance.setObjectForKey ("TCBookingRequestViewController", null);
TCSortTable.currentIndexPath = NSIndexPath.FromRowSection (0, 0);
CoreSystem.Utils.keepAccessToken ("");
CoreSystem.Utils.keepEmail ("");
TCGlobals.getInstance.accessToken = "";
MApplication.getInstance ().isRequired = true;
MApplication.getInstance ().userId = Guid.Empty;
TCGlobals.getInstance.isAddObserverSplash = false;
TCGlobals.getInstance.searchFromDashboard = false;
TCGlobals.getInstance.myEmail = "";
TCHomeViewController homeVC = (TCHomeViewController)storyBoard.InstantiateViewController ("TCHomeViewController");
UINavigationController rootVC = new UINavigationController ();
rootVC.SetViewControllers (new UIViewController[] { homeVC }, true);
UIApplication.SharedApplication.Delegate.GetWindow ().RootViewController = rootVC;
UIApplication.SharedApplication.Delegate.GetWindow ().MakeKeyAndVisible ();
if (TCViewIdentity.getInstance.getObjectForKey ("TCMainTabViewController") != null) {
TCMainTabViewController mainVC = (TCMainTabViewController)TCViewIdentity.getInstance.getObjectForKey ("TCMainTabViewController");
mainVC.Dispose();
}
if (TCViewIdentity.getInstance.getObjectForKey ("TCSplashScreenViewController") != null && !TCGlobals.getInstance.isAddObserverSplash) {
TCSplashScreenViewController splashScreenVC = (TCSplashScreenViewController)TCViewIdentity.getInstance.getObjectForKey ("TCSplashScreenViewController");
splashScreenVC.addObserverNetwork ();
}
}
示例6: setNavigation
private void setNavigation ()
{
UINavigationController navigationVC = new UINavigationController ();
navigationVC.SetViewControllers (new UIViewController[] { rootVC }, true);
NSNotificationCenter.DefaultCenter.PostNotificationName ("finshedSplash", navigationVC);
}