如何增加UITableView分隔符高度? [英] How to increase the UITableView separator height?
本文介绍了如何增加UITableView分隔符高度?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我希望每个单元格
之间有更多空间(10px)。我怎么能这样做?
I want more space(10px) between each cell
. How can I do this?
我添加了这段代码
tableView.separatorStyle = UITableViewCellSeparatorStyleNone;
推荐答案
我不认为使用标准API是可能的。我想你需要继承UITableViewCell并添加一个模拟单元格底部分隔符的视图。
I don't think it's possible using standard API. I guess you would need to subclass the UITableViewCell and add a view that simulates a separator at the bottom of the cell.
您可能想查看这个问题,它似乎有关并且有一些示例代码:
iPhone + UITableView +为分隔符放置图像
You may want to check this question, it seems related and has some sample code: iPhone + UITableView + place an image for separator
这篇关于如何增加UITableView分隔符高度?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文