ifish/Ifish/controllers/HotBar/Views/IFishHotBarCell.m

47 lines
1.2 KiB
Objective-C

//
// IFishHotBarCell.m
// Ifish
//
// Created by 罗艺 on 2018/8/22.
// Copyright © 2018年 lianlian. All rights reserved.
//
#import "IFishHotBarCell.h"
@interface IFishHotBarCell()
@property (weak, nonatomic) IBOutlet UILabel *titleLbale;
@property (weak, nonatomic) IBOutlet UILabel *subTitleLable;
@property (weak, nonatomic) IBOutlet UIImageView *iconImgV;
@property (weak, nonatomic) IBOutlet UIImageView *arrowImgV;
@end
@implementation IFishHotBarCell
- (void)awakeFromNib {
[super awakeFromNib];
// Initialization code
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
[super setSelected:selected animated:animated];
// Configure the view for the selected state
}
-(void)setVo:(IfishHotBarVo *)vo{
_vo=vo;
self.titleLbale.text=vo.title;
self.subTitleLable.text=vo.subTitle;
self.iconImgV.image=[UIImage imageNamed:vo.iconUrl];
self.arrowImgV.hidden=!vo.isShowArrow;
if (vo.phv<120&&[vo.title containsString:@"水循环"]) {
[self.subTitleLable setTextColor:[UIColor redColor]];
}else{
[self.subTitleLable setTextColor:[UIColor colorWithRed:109/255.0 green:109/255.0 blue:109/255.0 alpha:1.0]];
}
}
@end