Search code examples
xcodexamarin.iosuiwindow

Monotouch: Slide-in new UIViewController


In AppDelegate I create a UIWindow.

Later in my program, I wan to create a new UIWindow and slide it in from right to left (like animate).

Here's my code from creating the new window:

UIWindow _tabWindow;
UITabBarController _tabBar;

_tabBar = new UITabBarController ();
_tabWindow = new UIWindow (UIScreen.MainScreen.Bounds); 
_tabWindow.RootViewController = _tabBar;
_tabWindow.MakeKeyAndVisible ();

How can I slide it in?

Thanks!

Mojo


Solution

  • typically an application has only one UIWindow instance. The UIWindow is like the glass of the screen if I may use the comparison, or the frame of your application.

    You should look for creating other views, these views will appear and disappear and are managed by a view controller.