ErnestJ
ErnestJ

Reputation: 225

MonoTouch.Dialog UITableView without margins

How can I create UITableView with MonoTouch.Dialog which has no margins?

At the moment once you create new Section it will add margins around the table and makes elements rounded. I want the look of simple UITableView which has no margins (top, left, bottom etc.), is this achievable anyhow?

Upvotes: 6

Views: 646

Answers (1)

poupou
poupou

Reputation: 43553

I think what you want is to create your DialogViewController with the UITableViewStyle.Plain style. E.g.

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.

Upvotes: 7

Related Questions