我在我的ViewDidLoad
中創建了一個tableView並設置了一個自定義的Source
和Cell
。這一切都很好。但是UITableView
在我的自定義視圖後面顯示分隔線。我可以評論我的代碼,自定義外觀,使所有在屏幕上的負荷是一個空UITableView
,它仍然顯示分隔線即使我已經設置了separatorStyle = UITableViewCellSeparatorStyle.None
Xamarin.iOS UITableView以編程方式隱藏分隔線
var table = new UITableView(View.Bounds);
table.SeparatorStyle = UITableViewCellSeparatorStyle.None;
table.SeparatorColor = UIColor.Clear;
table.TableFooterView = new UIView(CGRect.Empty);
Add(table);
我自己也嘗試設置有顏色清除和空白頁腳無濟於事。
任何幫助,非常感謝。
可以爲您提供一個示例項目? –