Home > Enterprise >  UITableViewCell Separator disappearing in iOS15
UITableViewCell Separator disappearing in iOS15

Time:10-24

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.

CodePudding user response:

towa x! This can be fixed by adding options to Separator. In MainStoryBoard go to the Attributes Inspector/Separator. Change it to Default - separator are shown in any condition: empty or filled.

CodePudding user response:

In you viewDidLoad function add this:

yourTableViewReference.fillerRowHeight = UITableViewCellSeparatorStyleSingleLine
  • Related