Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS - Cell Separators Don't Appear on UITableView

The cell separators on my table view do not appear in the iOS simulator. Here is the ViewController:

http://i.imgur.com/qFja6nm.png

Here are the warnings I have:

http://i.imgur.com/iubdGYZ.png

The custom segue is the one that I have when the user clicks on a cell in the table. I use a search display controller in the code for searching with the search bar, and displaying in the table view.

Here is what the iOS simulator shows:

http://i.imgur.com/7Oku66X.png

The cell separators do appear when I click and drag the table, but not when it is not being interacted with.

I also include these lines in the code in an attempt to fix the problem:

tableView.separatorStyle = UITableViewCellSeparatorStyle.SingleLine
self.automaticallyAdjustsScrollViewInsets = false

EDIT:

Here are the settings for the tableView:

http://i.imgur.com/slt48tU.png

http://i.imgur.com/NCIJfS1.png

http://i.imgur.com/EXyWvTt.png

like image 269
Infamous911 Avatar asked Jul 12 '15 05:07

Infamous911


1 Answers

iOS 11 simulators: +2 (Pixel Accurate option)


iOS 10 and below simulators: +1 (100% scale option)


Physical device: "it just works"


Also, you can show the separators by interacting with the UITableView (unless scrolling/bouncing is turned off).

like image 61
Islam Avatar answered Nov 15 '22 22:11

Islam