简体   繁体   中英

Changing the separator color/thickness for a UITableViewCell

Is there a way to change the color/thickness of some of my UITableViewCell separators, but not all? Currently, I'm able to use [self.tableView setSeparatorColor:[UIColor greycolor]]; to set the color of all of my UITableView separators to Red, but I want the separator at the bottom to be a slightly darker grey. Is this possible?

在此处输入图片说明

这是可行的,但-drawRect:是您必须创建自定义UITableViewCell子类并在-drawRect:实现自定义绘图-drawRect:

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