我的 UITableView 上的这一行是什么?
我有一个分组表视图。我以前制作过数十个表视图,但我不确定这一行是什么:
谁能告诉我那是什么以及如何删除它?
更新:
我将问题范围缩小到 heightForRowAtIndexPath 委托方法。看看下面的内容。请注意,我需要一些行更高:
-(CGFloat)tableView:(UITableView *)tableViewLocal heightForRowAtIndexPath:(NSIndexPath *)indexPath {
if(indexPath.section == 0 && (indexPath.row == 3 || indexPath.row == 4 || indexPath.row == 5)) {
return tableViewLocal.rowHeight * 1.3; //If I remove the multiplier, it doesn't produce the line.
}
else
return tableViewLocal.rowHeight;
}
I have a grouped table view. I've made tens of table views before, but I'm not sure what this line is:
Can anyone tell me what that is and how to remove it?
UPDATE:
I narrowed down the problem to the heightForRowAtIndexPath delegate method. Take a look at that below. Note that I need some of the rows to be taller:
-(CGFloat)tableView:(UITableView *)tableViewLocal heightForRowAtIndexPath:(NSIndexPath *)indexPath {
if(indexPath.section == 0 && (indexPath.row == 3 || indexPath.row == 4 || indexPath.row == 5)) {
return tableViewLocal.rowHeight * 1.3; //If I remove the multiplier, it doesn't produce the line.
}
else
return tableViewLocal.rowHeight;
}
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
看起来像背景。尝试在代码中设置 tableView
希望这会有所帮助。
It looks like the background. Try setting your tableView in code to
Hope this helps.