123456789101112131415161718192021222324252627282930 |
- //
- // NoDataCell.m
- // ZBProject
- //
- // Created by 学丽 on 2019/4/23.
- // Copyright © 2019 ZB. All rights reserved.
- //
- #import "NoDataCell.h"
- @implementation NoDataCell
- -(instancetype)initWithFrame:(CGRect)frame
- {
- self=[super initWithFrame:frame];
- if (self) {
- UIImageView *imgV =[[UIImageView alloc]initWithFrame:CGRectMake(SCREEN_WIDTH/2-50, 150, 100, 100)];
- imgV.image=[UIImage imageNamed:@"no_order"];
- [self addSubview:imgV];
-
- UILabel *label =[[UILabel alloc]initWithFrame:CGRectMake(0, imgV.bottom+10, SCREEN_WIDTH, 20)];
- label.text=@"还没有记录";
- label.font=[UIFont systemFontOfSize:14];
- label.textColor=[UIColor YHColorWithHex:0x333333];
- label.textAlignment=NSTextAlignmentCenter;
- [self addSubview:label];
- }
- return self;
- }
- @end
|