简体   繁体   English

iOS:在UITableView中隐藏特定部分的所有行

[英]iOS: Hide all lines for specific section in UITableView

I have UITableView with two sections, and I want the first section to appear without lines. 我有包含两个部分的UITableView,并且我希望第一部分显示为无行。

is it possible to hide all lines (top and bottom lines and cell separators) for only one section ? 是否可以只隐藏一个部分的所有行(顶行和底行以及单元格分隔符)?

No, separatorStyle is a property of UITableView , so there is no way to change it for specific sections / rows. 不, separatorStyleUITableView的属性,因此无法更改特定节/行的属性。

But it's not hard to implement yourself, with a custom UITableViewCell subclass 但是,使用自定义UITableViewCell子类来实现自己并不难

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM