奇怪的灰线出现在iOS 5的UITableView的顶部(直到我升级到Xcode 4.3并在iOS 5 iPhone上运行应用程序时才出现)-其他人看到了吗?通过这样做,我在其他一些TableViewController中也得到了一些有趣的白线:
// needed to get rid of funny white lines in iOS 5
tableView.separatorStyle = UITableViewCellSeparatorStyleSingleLine;
tableView.separatorColor = [UIColor clearColor];
但是,这不能删除该行。这里没有标题标题。该行使用我的UITableView上下滚动
最佳答案
我有同样的问题,但只有它出现在“编辑”模式下。
我需要标题,所以以前的答案不适合我。
但是这个答案对我有帮助Remove top gray line on UITableViewCell
,希望对遇到同样问题的人有所帮助。
tableView.separatorColor = [UIColor clearColor];