| 12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- //
- // MOGuildStartCell.m
- // MiMoLive
- //
- // Created by SuperC on 2023/10/25.
- //
- #import "MOGuildStartCell.h"
- @implementation MOGuildStartCell
- - (void)awakeFromNib {
- [super awakeFromNib];
- // Initialization code
-
- self.backgroundColor = [MOTools colorWithHexString:@"#F5F1F6" alpha:1.0];
-
- self.bgView.layer.cornerRadius = 12.0;
- self.bgView.layer.masksToBounds = YES;
-
- self.iconImg.layer.cornerRadius = 52.0 / 2.0;
- self.iconImg.layer.masksToBounds = YES;
- }
- - (void)setSelected:(BOOL)selected animated:(BOOL)animated {
- [super setSelected:selected animated:animated];
- // Configure the view for the selected state
- }
- - (void)setModel:(MOGuildBase *)model{
- _model = model;
-
- [self.iconImg sd_setImageWithURL:[NSURL URLWithString:model.logo] placeholderImage:[UIImage imageNamed:@""]];
- self.titleNameLab.text = model.name;
-
- [self.anchorNumBtn setTitle:[NSString stringWithFormat:@"Anchor: %.f",model.anchor] forState:UIControlStateNormal];
-
- [self.countryImg sd_setImageWithURL:[NSURL URLWithString:model.country]];
-
- }
- @end
|