静态 UITableView 在禁用时显示分隔线
Static UITableView is showing separator lines when they have been disabled
我在 UIContainerView 中嵌入了静态 UITableView。当我禁用它们时,tableView 显示分隔线。
您可以像这样设置自定义偏移量:
试试这个
Objective C -
self.tableView.tableFooterView = [[UIView] initWithFrame:CGRectZero];
Swift -
self.tableView.tableFooterView = UIView(frame:CGRectZero)
如果有效请回复。我们需要点击和试用,因为提供的详细信息不足以追踪问题。另外,如果不起作用,请 post 代码(如果有)。
我发现了问题。我的 UITableViewController 正在扩展自定义 UITableViewController,这是在添加自定义分隔符。
我在 UIContainerView 中嵌入了静态 UITableView。当我禁用它们时,tableView 显示分隔线。
您可以像这样设置自定义偏移量:
试试这个
Objective C -
self.tableView.tableFooterView = [[UIView] initWithFrame:CGRectZero];
Swift -
self.tableView.tableFooterView = UIView(frame:CGRectZero)
如果有效请回复。我们需要点击和试用,因为提供的详细信息不足以追踪问题。另外,如果不起作用,请 post 代码(如果有)。
我发现了问题。我的 UITableViewController 正在扩展自定义 UITableViewController,这是在添加自定义分隔符。