Search code examples
swiftobjective-cuitableviewipadios15

UITableViewCell Separator disappearing in iOS15


I try to add separator line like this.

image1

But separator line disappearing when there is no data.

image2

Can anyone please help me solve this issue?Thanks.


Solution

  • In you viewDidLoad function add this:

    yourTableViewReference.fillerRowHeight = UITableViewCellSeparatorStyleSingleLine