Monotouch:滑入新的 UIViewController
在 AppDelegate 中,我创建了一个 UIWindow。
后来在我的程序中,我想创建一个新的 UIWindow 并将其从右向左滑动(就像动画一样)。
这是创建新窗口的代码:
UIWindow _tabWindow;
UITabBarController _tabBar;
_tabBar = new UITabBarController ();
_tabWindow = new UIWindow (UIScreen.MainScreen.Bounds);
_tabWindow.RootViewController = _tabBar;
_tabWindow.MakeKeyAndVisible ();
如何将其滑入?
谢谢!
莫乔
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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
通常,一个应用程序只有一个 UIWindow 实例。如果我可以使用比较的话,UIWindow 就像屏幕的玻璃,或者应用程序的框架。
您应该寻找创建其他视图,这些视图将出现和消失并由视图控制器管理。
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.