[英]How to create space between 2 table view cell?
I have a TableViewCell
which have the border at the surrounding.So what some space at the bottom of each cell. 我有一个TableViewCell
,周围有边框,所以每个单元格的底部都有一些空间。
Here is what I want : 这是我想要的:
I see a lot of question is work for cell which doesnt have any border.What I want is the space is outside the border at the bottom of every cell. 我看到很多问题是没有边框的单元格的工作。我想要的是每个单元格底部的边框之外的空间。
Now my cell is look like this 现在我的手机看起来像这样
So how can I achieve the output that I stated in first picture? 那么如何实现第一张图所示的输出?
It's easily accomplished with static/dynamic tableView cells & don't give the border to the cell itself but to the subview named TopView 使用静态/动态tableView单元格可以轻松完成此操作,并且不给单元格本身边框,而给名为TopView的子视图边框
tableViewCell
->ContentView
->TopView ---- with border height(static/dynamic)
->DownView transparent ---- height(10)
with 与
tableView.separatorStyle = .none
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.