Question

In the below screenshot I have a table but only a few elements. How do I tell MonoTouch.Dialog to not draw the extra lines at the bottom of the table when there aren't enough StyledStringElements to fill the screen?

enter image description here

Was it helpful?

Solution

I can think of two ways:

  1. You set the UITableView.SeparatorStyle to UITableViewCellSeparatorStyle.None. However you will lose all separators (between all cells, not just at the bottom). OTOH That can be a good thing if you want to have your own custom separator.

  2. You set an empty footer view to your UITableView, something like:

    tv.TableFooterView = new UIView ();

You might want to select your own color (or clear) and not the default one.

OTHER TIPS

It worked for me.(iOS Native)

self.tableView.tableFooterView = [[UIView alloc] initWithFrame:CGRectZero];

Not sure how to write it in MonoTouch.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top