i have a Grouped Cells Static TableView and i'd like to know how to archieve this design? The border and the shadow.
Thanks
i have a Grouped Cells Static TableView and i'd like to know how to archieve this design? The border and the shadow.
Thanks
Without custom drawRect
code you can't change the background of a cell.
There's a GitHub project based on the answer provided at this question.
Basically you have to draw three different types of custom cells based on the position of the cell (top, middle, bottom). I keep hoping each release of iOS will allow you to do this in a more direct manner.
You can change cell's backroundView value:
UIImage *image = [[UIImage imageNamed:@"image-name"] stretchableImageWithLeftCapWidth:5.0 topCapHeight:5.0];
UIImageView *imageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, self.frame.size.width, self.frame.size.height)];
[imageView setImage:image];
self.backgroundView = imageView;
[imageView release];
Also you can change selectedBackgroundView value.
You must UITableViewCell override drawRect
.
but, here is good Library. PrettyKit.
Using a this you'll be able to easily reach.