没有边距的MonoTouch.Dialog UITableView

Ern*_*stJ 6 uitableview xamarin.ios ios monotouch.dialog

如何UITableView使用没有边距的MonoTouch.Dialog 创建?

一旦你创建了新的Section,它将在表格周围添加边距并使元素四舍五入.我希望简单的外观UITableView没有边距(顶部,左边,底部等),无论如何这是可以实现的吗?

pou*_*pou 7

我想你想要的是创造你DialogViewControllerUITableViewStyle.Plain风格.例如

var root = new RootElement ();
var d = new DialogViewController (UITableViewStyle.Plain, root);
Run Code Online (Sandbox Code Playgroud)

默认样式值是,UITableViewStyle.Grouped并为每个元素提供圆角直观外观.