[英]MonoTouch.Dialog UITableView without margins
How can I create UITableView
with MonoTouch.Dialog which has no margins? 如何使用没有边距的MonoTouch.Dialog创建
UITableView
?
At the moment once you create new Section it will add margins around the table and makes elements rounded. 一旦你创建了新的Section,它将在表格周围添加边距并使元素四舍五入。 I want the look of simple
UITableView
which has no margins (top, left, bottom etc.), is this achievable anyhow? 我想要简单的
UITableView
外观没有边距(顶部,左边,底部等),无论如何这是可以实现的吗?
I think what you want is to create your DialogViewController
with the UITableViewStyle.Plain
style. 我想你想要的是用
UITableViewStyle.Plain
风格创建你的DialogViewController
。 Eg 例如
var root = new RootElement ();
var d = new DialogViewController (UITableViewStyle.Plain, root);
The default style value is UITableViewStyle.Grouped
and gives each element a rounded-rect look. 默认样式值为
UITableViewStyle.Grouped
并为每个元素提供圆角直观外观。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.