Initial commit
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
//
|
||||
// IfishNomassageView.h
|
||||
// Ifish
|
||||
//
|
||||
// Created by imac on 16/8/9.
|
||||
// Copyright © 2016年 lianxiang. All rights reserved.
|
||||
//
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
@interface IfishNomassageView : UIView
|
||||
|
||||
|
||||
|
||||
@end
|
||||
@@ -0,0 +1,43 @@
|
||||
//
|
||||
// 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
|
||||
Reference in New Issue
Block a user