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

42 lines
952 B
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;
}
@end