ifish/Ifish/controllers/IfishTabControllers/设备/DengJi/View/JingYanValueViewCell.m

36 lines
963 B
Objective-C

//
// JingYanValueViewCell.m
// Ifish
//
// Created by imac on 17/3/1.
// Copyright © 2017年 lianlian. All rights reserved.
//
#import "JingYanValueViewCell.h"
#import "IfishHelperUtils.h"
@implementation JingYanValueViewCell
- (void)awakeFromNib {
[super awakeFromNib];
// Initialization code
}
-(void)loadCellWithJingYan:(JingYanValuelist *)model{
NSMutableAttributedString * surplusString = [[NSMutableAttributedString alloc] initWithString:model.ruleRemark];
NSRange range= [IfishHelperUtils getIndexFromString:model.ruleRemark];
[surplusString addAttribute:NSForegroundColorAttributeName value:[UIColor colorWithRed:255.0/255.0 green:193.0/255.0 blue:73.0/255.0 alpha:1] range:range];
self.getExplabel.attributedText = surplusString;
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
[super setSelected:selected animated:animated];
// Configure the view for the selected state
}
@end