Last active
August 29, 2015 14:03
-
-
Save minsOne/7028a12808b2b0fe01c3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - (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