// // TabBarDeviceShouYeCell.m // Ifish // // Created by imac on 16/7/28. // Copyright © 2016年 lianxiang. All rights reserved. // #import "TabBarDeviceShouYeCell.h" @implementation TabBarDeviceShouYeCell // 手写cell 必须实现 -(id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{ self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]; if (self) { CGFloat imgH=(kScreenSize.width-5*2)*0.67; //CGFloat CellH = (kScreenSize.width-5*2)*0.67; self.shouYeFirstImg = [[UIImageView alloc] initWithFrame:CGRectMake(5,0, kScreenSize.width-5*2,imgH)]; self.shouYeFirstImg.image= [UIImage imageNamed:@"device_upbanner"]; self.shouYeFirstImg.contentMode = UIViewContentModeScaleToFill; //self.shouYeFirstImg.contentMode = UIViewContentModeCenter; [self addSubview:self.shouYeFirstImg]; } return self; } - (void)setSelected:(BOOL)selected animated:(BOOL)animated { [super setSelected:selected animated:animated]; // Configure the view for the selected state } @end