考虑这样的事情:
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/