ifish/Ifish/controllers/IfishTabControllers/消息/noMassageView/IfishNomassageView.m

44 lines
1.1 KiB
Objective-C

//
// IfishNomassageView.m
// Ifish
//
// Created by imac on 16/8/9.
// Copyright © 2016年 lianxiang. All rights reserved.
//
#import "IfishNomassageView.h"
@implementation IfishNomassageView
-(id)initWithFrame:(CGRect)frame
{
self=[super initWithFrame:frame];
if (self) {
self.backgroundColor = TABLE_BACKGROUD_COLOR;
//self.backgroundColor = [UIColor redColor];
UIImageView *backImg = [[UIImageView alloc] initWithFrame:CGRectMake(self.frame.size.width/2 - 25 , 0, 50, 50)];
backImg.image = [UIImage imageNamed:@"light_right_fragment"];
[self addSubview:backImg];
UILabel *title=[[UILabel alloc] initWithFrame:CGRectMake(0, CGRectGetMaxY(backImg.frame), self.frame.size.width,20)];
title.text = @"暂时木有消息哦!";
title.textAlignment = NSTextAlignmentCenter;
title.textColor = [UIColor colorWithRed:146.0/255.0 green:146.0/255.0 blue:146.0/255.0 alpha:1];
[self addSubview:title];
}
return self;
}
@end