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