UITableView分隔线 [英] UITableView Separator line
本文介绍了UITableView分隔线的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何更改UITableView中每个单元格末尾显示的分隔线?
我想要一个薄分隔符类型的线图像。
How can I change the separator line that appears at the end of each cell in UITableView? I want to have an image that is a thin separator type line image.
推荐答案
将tableview的 separatorStyle
设置为 UITableViewCellSeparatorStyleNone
。将您的分隔符图像作为子视图添加到每个单元格并正确设置框架。
Set the separatorStyle
of the tableview to UITableViewCellSeparatorStyleNone
. Add your separator image as subview to each cell and set the frame properly.
这篇关于UITableView分隔线的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文