UITableViewCell separator not showing up

后端 未结 8 1530
梦如初夏
梦如初夏 2020-12-09 15:13

I made a custom UITableViewCell in IB, but for some reason, despite the single line option for separator being selected, there are no separator lines on my table.

Ha

8条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-09 15:39

    in my case I have to set the separatorStyle property of the tableView

    tableView.separatorStyle = UITableViewCellSeparatorStyleSingleLine;

提交回复
热议问题