Skip to content

Instantly share code, notes, and snippets.

@minsOne
Last active August 29, 2015 14:03
Show Gist options
  • Select an option

  • Save minsOne/7028a12808b2b0fe01c3 to your computer and use it in GitHub Desktop.

Select an option

Save minsOne/7028a12808b2b0fe01c3 to your computer and use it in GitHub Desktop.
- (void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath
{
cell.contentView.backgroundColor = [UIColor clearColor];
UIView *whiteRoundedCornerView = [[UIView alloc] initWithFrame:CGRectMake(10,10,300,70)];
whiteRoundedCornerView.backgroundColor = [UIColor whiteColor];
whiteRoundedCornerView.layer.masksToBounds = NO;
whiteRoundedCornerView.layer.cornerRadius = 3.0;
whiteRoundedCornerView.layer.shadowOffset = CGSizeMake(-1, 1);
whiteRoundedCornerView.layer.shadowOpacity = 0.5;
[cell.contentView addSubview:whiteRoundedCornerView];
[cell.contentView sendSubviewToBack:whiteRoundedCornerView];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment