如您所见,上面分隔符的布局不正确。 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) 或者你可以这样做
关于ios - IOS 7 中的 tableView 分隔符布局问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19129409/