0

I want to increase the thickness of cell border of UITableVewStyleGrouped table for my iPhone app.

http://screencast.com/t/vWf8sg9D6oA

4

1 回答 1

4
#import <QuartzCore/QuartzCore.h>

- (void)someAppropriateMethod
{
    [self.myTableViewCell.contentView.layer setBorderColor:[UIColor redColor].CGColor];
    [self.myTableViewCell.contentView.layer setBorderWidth:1.0f];
}

And as an alternate,You can also try this :

You'll need to create an entire tableviewcell with the border you want. that means you'll have to create the pictures of top, bottom and middle cell. There's a little tutorial on this link.

于 2013-03-05T06:51:35.937 回答