【发布时间】:2016-08-03 20:43:36
【问题描述】:
我正在我的ViewDidLoad 中创建一个tableView 并设置一个自定义Source 和Cell。这一切都很好。但是UITableView 在我的自定义视图后面显示分隔线。我可以注释掉自定义外观的代码,以便屏幕上加载的所有内容都是空的UITableView,即使我设置了separatorStyle = UITableViewCellSeparatorStyle.None,它仍会显示分隔线
var table = new UITableView(View.Bounds);
table.SeparatorStyle = UITableViewCellSeparatorStyle.None;
table.SeparatorColor = UIColor.Clear;
table.TableFooterView = new UIView(CGRect.Empty);
Add(table);
我也尝试将颜色设置为清除和空白页脚无济于事。
非常感谢任何帮助。
【问题讨论】:
-
你能提供一个示例项目吗?
标签: xamarin xamarin.ios