//
//  CustomPictureShowCell.m
//  Lighting
//
//  Created by mac on 16/5/16.
//  Copyright © 2016年 上海勾芒科技有限公司. All rights reserved.
//

#import "CustomPictureShowCell.h"

@implementation CustomPictureShowCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier withImageName:(NSString *)imageName{
    
    self =  [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self bulidLayout];
    }
    return self;
}
-(void)bulidLayout
{
    self.pictureView1=[[UIImageView  alloc]initWithFrame:CGRectMake(5, 5, (self.frame.size.width-30)/3, 140)];
    [self addSubview:self.pictureView1];
    self.pictureView2=[[UIImageView  alloc]initWithFrame:CGRectMake(5+10+(self.frame.size.width-30)/3, 5, (self.frame.size.width-30)/3, 140)];
    [self addSubview:self.pictureView2];
    self.pictureView3=[[UIImageView  alloc]initWithFrame:CGRectMake(5+10+2*(self.frame.size.width-30)/3 +10, 5, (self.frame.size.width-30)/3, 140)];
    [self addSubview:self.pictureView3];


}
//- (void)setFrame:(CGRect)frame {
//     [super setFrame:frame];
//    frame.size.width = 800;
//   
//    
//}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
