iOS 7 UITableView:它是一个bug还是我? [英] iOS 7 UITableView: is it a bug or is it me?

查看:99
本文介绍了iOS 7 UITableView:它是一个bug还是我?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请参阅附图。在iOS 7的表格视图中,UIKit在附件视图和重新排序控件之间绘制一条细灰色垂直线。但是,当滚动表视图时,不会在某些单元格中绘制此行。在附图中的单元1,2和8中不存在它。为什么是这样?我该如何解决?

Please see the attached image. In table views in iOS 7, UIKit draws a thin gray vertical line between the accessory view and the reordering control. However, when the table view is scrolled this line is not drawn in some cells. It is absent in cells 1, 2 and 8 in the attached image. Why is this? How can I fix it?

推荐答案

我在iphone 6s plus上遇到同样的问题并解决了它将单元格textLabel的backgroundColor设置为clearColor

I'm having the same issue on an iphone 6s plus and solved it setting the backgroundColor of the cell's textLabel to clearColor

cell.textLabel.backgroundColor = [UIColor clearColor];

这篇关于iOS 7 UITableView:它是一个bug还是我?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆