// // RemindingView.m // BorrowMoney // // Created by JuYi on 2017/6/30. // Copyright © 2017年 JuYi. All rights reserved. // 没有数据 提示view #import "RemindingView.h" @implementation RemindingView - (instancetype)initWithFrame:(CGRect)frame { self = [super initWithFrame:frame]; if (self) { // self.backgroundColor = RGBValueColor(0xf7f7f7, 1.0); [self setUpUIForView]; } return self; } - (void)setUpUIForView { UIImageView *remindView = [[UIImageView alloc] init]; remindView.frame = CGRectMake(ScreenWidth / 2 - 47.5, 148 * AutoSizeSalseX, 95, 100); [self addSubview:remindView]; self.remindView = remindView; UILabel *remindLabel = [[UILabel alloc] init]; remindLabel.frame = CGRectMake(0, CGRectGetMaxY(remindView.frame) + 44, ScreenWidth, 15); remindLabel.textAlignment = NSTextAlignmentCenter; remindLabel.font = [UIFont systemFontOfSize:15.0]; remindLabel.textColor = RGBValueColor(0xc5c5c7, 1.0); [self addSubview:remindLabel]; self.remindLabel = remindLabel; } @end