ios - IOS 7 中的 tableView 分隔符布局问题

标签 ios iphone uitableview ios7

enter image description here

如您所见,上面分隔符的布局不正确。 tableView 位于 MoreTabController 中。

我找到的解决方案是 How to fix UITableView separator on iOS 7?还有这个Is there a way to make UITableView cells in iOS 7 not have a line break in the separator?

但我正在针对 SDK 6.0 而不是 SDK 7.0 编译我的应用程序,因为如果针对 SDK 7.0 进行编译,我的应用程序将无法运行。 setSeparatorInset 函数只在 SDK 7.0 之后存在,还有其他方法可以解决这个问题吗?

最佳答案

//在 ios 7 中我们可以通过两种方式在 UITableView 中设置 separatorInset

1) 由 Pragmatically 设置

table.separatorInset=UIEdgeInsetsZero;

2) 或者你可以这样做

screen Shot

关于ios - IOS 7 中的 tableView 分隔符布局问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19129409/

相关文章:

iphone - 确定 UIImageview 上是否有图像

ios - 如何在carplay模拟器中启用触摸

ios - UITableViewCell detailTextLabel 从不显示

ios - 如何使用 spritekit 相对于用户触摸坐标旋转某些东西

ios - 不存在带有 CFbundleidentifier 的软件

ios - SWIFT 2 - UICollectionView - 慢速滚动

iphone - 嵌入式计算机视觉平台

ios - 将图像添加到 imageView iOS 时出现 NSInvalidArgumentException 异常

ios - 两个 UITableView 的 numberOfSectionsInTableView

ios - 如何从另一个函数更新单元格图像?