// // HSQNoDataCell.m // YouHuiProject // // Created by liuxueli on 2018/11/22. // Copyright © 2018 kuxuan. All rights reserved. // #import "HSQNoDataCell.h" @implementation HSQNoDataCell -(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier { self =[super initWithStyle:style reuseIdentifier:reuseIdentifier]; if (self) { self.backgroundColor=[UIColor clearColor]; UILabel *labels =[[UILabel alloc]initWithFrame:CGRectMake(0, FITSIZE(150), SCREEN_WIDTH, FITSIZE(20))]; labels.text=@"您还没有收益哦~"; labels.font =[UIFont systemFontOfSize:FITSIZE(13)]; labels.textColor=[UIColor YHColorWithHex:0x979595]; [self addSubview:labels]; labels.textAlignment=NSTextAlignmentCenter; UIImageView *imgs =[[UIImageView alloc]initWithFrame:CGRectMake(SCREEN_WIDTH/2-FITSIZE(37.5), FITSIZE(70), FITSIZE(65), FITSIZE(72))]; imgs.image=[UIImage imageNamed:@"no_order"]; [self addSubview:imgs]; } return self; } @end