MonoTouch Dialog 在对话框底部添加工具栏 [英] MonoTouch Dialog add a toolbar at the bottom of the dialog

查看:27
本文介绍了MonoTouch Dialog 在对话框底部添加工具栏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试添加一个锚定到 MonoTouch 对话框底部的工具栏.

I am trying to add a Toolbar that is anchored to the bottom of a MonoTouch Dialog.

这是一个例子:

因此,当您滚动时,表格的内容会滚动,但底部的工具栏始终处于可见状态.我知道如何使用界面构建器来做到这一点,但不知道如何使用 Mt.D.请告诉我它可以做到!

So as you scroll, the table's contents scroll but the toolbar at the bottom remains in view always. I know how to do this by using the interface builder, but no clue as to how to do this with Mt.D. Please please tell me it can be done!

推荐答案

为此,将 DialogViewController 及其视图用作另一个 UIViewController 的子项可能是最简单的.

To do this, it's probably easiest to use the DialogViewController and its View as a child of another UIViewController.

只需创建您的 public class MyViewController : UIViewController 类,然后在 override ViewDidLoad 方法中创建和调整子视图的大小.

Just create your public class MyViewController : UIViewController class and then create and size your child views in the override ViewDidLoad method.

这篇关于MonoTouch Dialog 在对话框底部添加工具栏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆