I'm developing my first app, and have got everything working except I have discovered a display issue on iPad, where the separator of a cell is limited in width (see screenshot)
Screen shot on iPad
I've tried everything that I can find on how to set the margins to 0, etc, including:
override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
let myCell = tableView.dequeueReusableCell(withIdentifier: "cellId", for: indexPath) as! MyCell
myCell.preservesSuperviewLayoutMargins = false
myCell.separatorInset = UIEdgeInsets.zero
myCell.layoutMargins = UIEdgeInsets.zero
return myCell
}
I'm not using storyboard and I am doing it programmatically,
Any ideas would be appreciated,
Thanks