简体   繁体   中英

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.

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.

But it's not hard to implement yourself, with a custom UITableViewCell subclass

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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