0
在AppDelegate中,我创建了一个UIWindow。Monotouch:滑入新的UIViewController
后来在我的程序中,我想创建一个新的UIWindow并从右向左滑动(如动画)。
下面是创建新的窗口,我的代码:
UIWindow _tabWindow;
UITabBarController _tabBar;
_tabBar = new UITabBarController();
_tabWindow = new UIWindow (UIScreen.MainScreen.Bounds);
_tabWindow.RootViewController = _tabBar;
_tabWindow.MakeKeyAndVisible();
我怎样才能在滑动呢?
谢谢!
Mojo
我在我的AppDelegate中有一个UINavigationController,但据我所知苹果指导方针不允许UITabBarController被推到UINavigationController的权利?所以我很困惑如何让我的应用程序启动一系列服务器,用户点击一个服务器,然后出现一个UITabBarController。所以我想为UITabBarController创建第二个UIWindow并将其显示在主UIWindow的顶部。 – MojoDK 2012-02-11 13:28:58
你的AppDelegate(或其他主控制器,如果你愿意的话)应该负责并从导航控制器(或UITableViewController:[link](https://developer.apple.com/library/IOs/#documentation/UIKit) /Reference/UITableViewController_Class/Reference/Reference.html))到UITabBarController。正在使用的控制器将显示并管理视图。 – moxy 2012-02-11 14:11:15
以及如何在UITableViewController和UITabBarController之间进行动画...滑入...和滑出...?谢谢你帮助我! :) – MojoDK 2012-02-11 15:08:57