我正在开发我的第一个应用程序,除了我在iPad上发现了一个显示问题,其中一个单元格的分隔符的宽度有限(见截图)
iPad上的屏幕截图
我已经尝试了一些关于如何将边距设置为0的所有内容, 包括:
override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
let myCell = tableView.dequeueReusableCell(withIdentifier: "cellId", for: indexPath) as! MyCell
myCell.preservesSuperviewLayoutMargins = false
myCell.separatorInset = UIEdgeInsets.zero
myCell.layoutMargins = UIEdgeInsets.zero
return myCell
}
我没有使用故事板,而是以编程方式进行,
任何想法都会受到赞赏,
由于
答案 0 :(得分:0)
我相信它是由FreeLibrary
引起的。您可以通过设置Readable Content Guide