【发布时间】:2012-04-24 13:54:02
【问题描述】:
在 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 上下滚动
【问题讨论】:
-
试试这个:tableView.separatorStyle = UITableViewCellSeparatorStyleNone;
-
感谢您的快速响应 - 不幸的是,这不起作用,线路仍然存在
标签: uitableview ios5 three20