- #import "SubcategoryTableViewCell.h"
- @implementation SubcategoryTableViewCell
- - (void)awakeFromNib {
- // Initialization code
- }
- - (void)setSelected:(BOOL)selected animated:(BOOL)animated {
- [super setSelected:selected animated:animated];
- }
- -(id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
- self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
- if(self){
- self.contentView.backgroundColor = [UIColor clearColor];
- UIView *whiteRoundedCornerView = [[UIView alloc] initWithFrame:CGRectMake(10,10,300,150)];
- whiteRoundedCornerView.backgroundColor = [UIColor whiteColor];
- whiteRoundedCornerView.layer.masksToBounds = NO;
- whiteRoundedCornerView.layer.cornerRadius = 3.0;
- [whiteRoundedCornerView.layer setShadowColor:[UIColor grayColor].CGColor];
- whiteRoundedCornerView.layer.shadowOffset = CGSizeMake(-1, 1);
- whiteRoundedCornerView.layer.shadowOpacity = 0.2;
- [self.contentView addSubview:whiteRoundedCornerView];
- [self.contentView sendSubviewToBack:whiteRoundedCornerView];
- return self;
- }
- return self;
- }
- @end