I want to have a border around my UITableView, and have the corners rounded. I know this is possible on Table Cells, but wondering what the best way to do this is. I'm using a container view to hold the table in a section of the screen.
Asked
Active
Viewed 1,359 times
1 Answers
2
Make sure you are linking with the QuartzCore framework in the target properties page.
On the view controller add:
#import <QuartzCore/QuartzCore.h>
Then you can set the corner radius of the table view's layer like so:
_tableView.layer.cornerRadius = 6.0f;
Use any value that suits you.

Léo Natan
- 56,823
- 9
- 150
- 195
-
Very clean and concise, awesome answer! – Norman G Jan 02 '13 at 14:03