Skip to content

Instantly share code, notes, and snippets.

@kyleturner
Created January 10, 2012 01:34
Show Gist options
  • Save kyleturner/1586247 to your computer and use it in GitHub Desktop.
Save kyleturner/1586247 to your computer and use it in GitHub Desktop.
Adding a border around your entire table view - could be good for sectioned tables
[[self.tableView layer] setCornerRadius:10];
[self.tableView setClipsToBounds:YES];
[[self.tableView layer] setBorderColor:
[[UIColor colorWithRed:0.52 green:0.09 blue:0.07 alpha:1] CGColor]];
[[self.tableView layer] setBorderWidth:2.75];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment