| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- //
- // ModelFansTableViewCell.m
- // 千模
- //
- // Created by Drew on 2018/12/24.
- // Copyright © 2018 MUMEI. All rights reserved.
- //
- #import "ModelFansTableViewCell.h"
- @implementation ModelFansTableViewCell
- - (void)awakeFromNib {
- [super awakeFromNib];
- // Initialization code
- self.contentView.backgroundColor = [UIColor clearColor];
- self.avatar.layer.cornerRadius = 18;
- self.avatar.clipsToBounds = YES;
- }
- - (void)setSelected:(BOOL)selected animated:(BOOL)animated {
- [super setSelected:selected animated:animated];
- // Configure the view for the selected state
- }
- - (IBAction)tapAvatar:(id)sender {
- }
- - (void)setData:(NSDictionary *)data {
- _data = data;
- [self.avatar sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@%@", imageURl, data[@"hPhoto"]]] placeholderImage:[UIImage imageNamed:@"default_avatar"]];
- self.name.text = data[@"Pet"];
- }
- - (UINavigationController *)findViewController {
- id target = self;
- while (target) {
- target = ((UIResponder *) target).nextResponder;
- if ([target isKindOfClass:[UINavigationController class]]) {
- break;
- }
- }
- return target;
- }
- @end
|