xamarin.ios - 单点触控对话框。屏幕上任何定义位置的部分

标签 xamarin.ios monotouch.dialog

考虑这样的事情:

new RootElement ("Root"){
                          new Section ("Section A") {
                            new EntryElement("Element in A")
                          }
                          new Section ("Section B") {
                            new EntryElement("Element in B")
                          }
}

和 Monotouch.Dialog 将创建包含两个部分的 TableView。现在我希望第二部分不位于第一部分的正下方,而是位于屏幕的最底部。我怎样才能做到这一点?

最佳答案

似乎您可以通过为该部分定义空的 HeaderView 来欺骗 Monotouch.Dialog。它将扩大部分之间的空间。像这样的东西:

lastSection.HeaderView = new UIView(new RectangleF(0,0,0,80));

我不确定这是正确的方法。为我工作。

关于xamarin.ios - 单点触控对话框。屏幕上任何定义位置的部分,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8140910/

相关文章:

ios - 使用 Xamarin,为什么我的应用程序设置默认为 false?

image - 如何将 C# 图像转移到 Monotouch

c# - 如何使用 UIImage.FromImage(context.ToImage()) 防止内存泄漏?

c# - 弄清楚如何摆脱 UITableView 单元格中单元格周围的边框

c# - 尝试运行Monotouch-bindings示例Facebook时出错

keyboard - 我可以通过触摸 DialogViewController (MonoTouch.Dialog) 的背景来关闭 iPhone 键盘吗?

iphone - iOS(Monotouch)应用程序在 viewWillAppear 上崩溃

iphone - 是否有类似 "Codea"的应用程序,但用于 MonoTouch?

ios - 如何获取 Google Maps API iOS 中某个点的坐标?

xamarin.ios - MonoTouch.Dialog:关闭键盘