是否可以在分组的UITableView中设置UITableViewCell的backgroundColor并保持单元格的圆角?在分组的UITableView中设置UITableViewCell的backgroundColor
我所有的尝试都会导致圆角丢失。
mike
是否可以在分组的UITableView中设置UITableViewCell的backgroundColor并保持单元格的圆角?在分组的UITableView中设置UITableViewCell的backgroundColor
我所有的尝试都会导致圆角丢失。
mike
不幸的是没有。我相信圆角是一个背景,单元在边缘是透明的。当您尝试使用自定义颜色(或图像)时,它会将其绘制。
我问同样的问题在几个星期前,你可以在这里看到有效的答案:
How to customize the background/border colors of a grouped table view cell?
这的确是可能的,提供的源代码的伟大工程。