Skip to content

Instantly share code, notes, and snippets.

@susieyy
Created August 9, 2016 06:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save susieyy/bc604f51ac8e7dfb46b88c8321cab4c1 to your computer and use it in GitHub Desktop.
Save susieyy/bc604f51ac8e7dfb46b88c8321cab4c1 to your computer and use it in GitHub Desktop.
UITableView's separator inset
// Hide
cell.separatorInset = UIEdgeInsets(top: 0, left: tableView.bounds.width, bottom: 0, right: 0)
cell.layoutMargins = UIEdgeInsetsZero
// Show
cell.separatorInset = UIEdgeInsetsZero
cell.layoutMargins = UIEdgeInsetsZero
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment