IOS last tableViewCell separator is missing

时间:2017-08-04 12:36:30

标签: ios objective-c swift uitableview

I have tableView with multiple cells (without sections). I add non-empty tableFooterView to the tableView. After that the last cell separator is not shown. Also when tableView is scrolled, separator sometimes appears or disappears. It happens both on simulator and on the device.

I've checked Debug view hierarchy and found the following: enter image description here

It is very strange. Penultimate cell separator is duplicated there but the last separator is single. May be the problem is somewhere there?

I've also checked it's properties: enter image description here

All I found as solution is to add empty tableFooterView but I need it to be filled.

How to make the last separator be always visible (also when scrolling)? I know you can get away without using actual separators, but adding one pixel line in the bottom of the cell. But I'm not a fan of this approach.

0 个答案:

没有答案