UITableView Border
I've been googling this the past couple nights, but I keep getting results in regards to changing the border of UITableView cells, not the UITableView itself. The cell borders are easily changed with the separatorColor property.
Basically I have a grouped UITableView that is about 80% the size of the screen. I set the tableView.layer.cornerRadius to 20 to give it rounded corners, and I also changed the backgroundColor to contrast it against the black screen.
What I want to do is give the entire UITableView a small border to give it a little more style, and make it look like a frame and not just a plain rounded rectangle.
I tried tableView.layer.borderColor = [UIColor darkGrayColor], but that throws a warning saying "incompatible pointer type", and doesn't show any changes when I build it.
Is there an easy way to give it a border, or at least trick it into displaying a border?
|