Reputation: 1531
The cell separators on my table view do not appear in the iOS simulator. Here is the ViewController:
https://i.sstatic.net/6Y2tM.png
Here are the warnings I have:
https://i.sstatic.net/b64B2.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:
https://i.sstatic.net/8HHzB.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:
https://i.sstatic.net/8RJNG.png
https://i.sstatic.net/XWNZr.png
https://i.sstatic.net/E5hcW.png
Upvotes: 9
Views: 5738
Reputation: 3734
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).
Upvotes: 45