I am developing an application for iPad using the current version of Xamarin.iOS with C #, and am trying to create UITableViewone that has only two of its corners (top right and bottom right). I know how all corners are rounded by setting myTable.Layer.CornerRadius = 6f;, but I donβt know how to get around only two rounds. I looked around, but can only see responses to Objective-C. This is what I have:
private UIView GetModalRowHeaderView2(RectangleF bounds)
{
UIView view = new UIView(bounds);
view.BackgroundColor = UIColor.Gray;
string[] tableItems = new string[] {"Item One","Item Two","Item Three"};
UITableView myTable = new UITableView(new RectangleF(0, 20, bounds.Width, bounds.Height - 40), UITableViewStyle.Plain);
myTable.SeparatorInset = UIEdgeInsets.Zero;
myTable.ScrollEnabled = false;
myTable.Source = new TableSource(tableItems);
myTable.Layer.CornerRadius = 6f;
view.Add(myTable);
return view;
}
Any ideas how I can change this to just two rounds?
Thanks,
source
share