[ Web Proxy ]
URL:
Viewing: https://raw.githubusercontent.com/Xchn/Coding-iOS/master/Coding_iOS/Views/UserActiveStatusView.m [Back]  [Original]

//
//  UserActiveStatusView.m
//  Coding_iOS
//
//  Created by  on 16/11/30.
//  Copyright  2016 Coding. All rights reserved.
//

#import "UserActiveStatusView.h"

@interface UserActiveStatusView ()
@property (nonatomic, strong) UILabel *titleLabel;
@property (nonatomic, strong) UILabel *detailsLabel;

@end

@implementation UserActiveStatusView

#pragma mark - 

- (void)awakeFromNib {
    [super awakeFromNib];
    [self creatView];
    
}

- (instancetype)init {
    self = [super init];
    if (self) {
        [self creatView];
    }
    return self;
}

#pragma mark - 

#pragma makr - 

#pragma mark - 

#pragma mark - 

#pragma mark - 

#pragma mark - 

- (void)creatView {
    _titleLabel = [[UILabel alloc] init];
    _titleLabel.font = [UIFont systemFontOfSize:17];
    _titleLabel.textAlignment = NSTextAlignmentCenter;
    [self addSubview:_titleLabel];
    _titleLabel.sd_layout.leftEqualToView(self).topSpaceToView(self, 8).rightEqualToView(self).heightIs(24);
    
    _detailsLabel = [[UILabel alloc] init];
    _detailsLabel.font = [UIFont systemFontOfSize:10];
    _detailsLabel.textAlignment = NSTextAlignmentCenter;
    _detailsLabel.textColor = [UIColor colorWithRGBHex:0x76808e];
    [self addSubview:_detailsLabel];
    _detailsLabel.sd_layout.leftEqualToView(self).topSpaceToView(_titleLabel, 5).rightEqualToView(self).heightIs(14);
}

#pragma mark - get/set

- (void)setTitle:(NSString *)title {
    _title = title;
    _titleLabel.text = title;
}

- (void)setDetails:(NSString *)details {
    _details = details;
    _detailsLabel.text = details;
}

@end

Web Proxy Viewer  |  New URL  |  Original Page